<div id="content" style="position: relative; min-height: 100%">
  <div id="fix_overflow" style="overflow: initial">
    <div class="row s_page_title">
      <sa-big-breadcrumbs
        [items]="['运输任务', '订单监控']"
        icon="fa fa-truck"
        class="col-xs-12 col-sm-7 col-md-7 col-lg-4"
      ></sa-big-breadcrumbs>
    </div>
    <sa-widgets-grid>
      <div class="s_table">
        <div sa-widget [editbutton]="false" color="darken" class="clearfix">
          <header>
            <span class="widget-icon"><i class="fa fa-table"></i></span>
            <h2>订单监控</h2>
          </header>
          <div>
            <div class="widget-body no-padding">
              <div class="page-header clearfix s_table_opreation" style="position: relative">
                <div class="left page-header-btn" style="width: calc(100% - 220px)">
                  <div class="top_module top_module_box">
                    <span class="top_module_label module_text">厂区类型</span>
                    <select name="" class="top_module_select" [(ngModel)]="companyType">
                      <option value="4">提货厂区-全部</option>
                      <option value="1">提货厂区-水泥</option>
                      <option value="3">提货厂区-物资</option>
                      <option value="2">安装厂区</option>
                    </select>
                  </div>

                  <sa-company-tree-car
                    companyTreeId="companyTree"
                    [isShowCarSort]="true"
                    [isLinkCompanyAndCar]="false"
                    (companySelected)="companySelected($event)"
                  ></sa-company-tree-car>

                  <div class="top_module top_module_box">
                    <span class="top_module_label module_text">问题分类</span>
                    <select class="top_module_select select2" id="questionTypeSelect2" name="questionType" select2>
                      <option value="">全部</option>
                      <optgroup *ngFor="let item of questionTypeList" [label]="item.label">
                        <option *ngFor="let lis of item.children" [value]="lis.id">{{ lis.label }}</option>
                      </optgroup>
                    </select>
                  </div>
                  <div class="top_module top_module_box">
                    <span class="top_module_label module_text">处理状态</span>
                    <select name="" class="top_module_select" [(ngModel)]="detailStatus">
                      <option value="">全部</option>
                      <option value="0">待处理</option>
                      <option value="1">人工处理</option>
                      <option value="2">算法处理</option>
                      <option value="3">无异常</option>
                    </select>
                  </div>

                  <div class="top_module top_module_box">
                    <span class="top_module_label module_text">GPS状态</span>
                    <select name="" class="top_module_select" [(ngModel)]="isGpsError">
                      <option value="">全部</option>
                      <!--<option value="0">正常</option>-->
                      <option value="1">GPS问题</option>
                      <option value="3">无GPS</option>
                      <option value="4">停车车速平直</option>
                      <option value="5">大段丢失</option>
                      <option value="6">偶尔丢失</option>
                    </select>
                  </div>

                  <div class="top_module top_module_box">
                    <span class="top_module_label module_text">订单状态</span>
                    <select name="" class="top_module_select" [(ngModel)]="checkStatus">
                      <option value="">全部</option>
                      <!--<option value="1">GPS异常</option>-->
                      <option value="3">未识别上货 [离厂]</option>
                      <option value="2">未清零 [进厂]</option>
                      <option value="4">重量突变 [在途]</option>
                      <option value="6">设备离线</option>
                      <option value="10">异常订单</option>
                      <option value="8">垂直卸货</option>
                      <option value="5">卸货未清零</option>
                      <option value="11">卸货有速度</option>
                      <option value="0">正常卸货</option>
                      <!--<option value="7">平台问题</option>
											<option value="9">磅单问题</option>-->
                    </select>
                  </div>
                  <div class="top_module top_module_box">
                    <span class="top_module_label module_text">订单进度</span>
                    <select name="" class="top_module_select" [(ngModel)]="orderStatus2">
                      <option value="">全部</option>
                      <option value="0">未结束</option>
                      <option value="1">已结束</option>
                    </select>
                  </div>
                  <div class="top_module top_module_box">
                    <span class="top_module_label module_text">算法</span>
                    <select name="" class="top_module_select" [(ngModel)]="isFixWeight">
                      <option value="">全部</option>
                      <option value="1">算法正常运行</option>
                      <option value="2">算法未识别上货</option>
                      <option value="3">算法未清零</option>
                      <option value="0">未运行算法</option>
                      <option value="4">算法已运行</option>
                      <option value="5">标定重量</option>
                    </select>
                  </div>
                  <div class="top_module top_module_box" *ngIf="btnNum == 'MatLab'">
                    <span class="top_module_label module_text">算法问题分类</span>
                    <select name="" class="top_module_select" [(ngModel)]="algorithmProblemTypes">
                      <option value="">全部</option>
                      <option value="算法问题">算法问题</option>
                      <option value="传感器问题">传感器问题</option>
                      <option value="系数问题">系数问题</option>
                      <option value="对接问题">对接问题</option>
                      <option value="空">空</option>
                      <option value="其他">其他</option>
                    </select>
                  </div>
                  <div class="top_module top_module_box">
                    <span class="top_module_label module_text">时间类型</span>
                    <select name="" class="top_module_select" [(ngModel)]="dateType">
                      <option value="1">进厂时间</option>
                      <option value="2">离厂时间</option>
                      <option value="3">订单结束时间</option>
                      <option value="4">操作时间</option>
                    </select>
                  </div>
                  <!-- <div class="selectDate top_module">
										<div class="input-daterange input-group s_selected_time_box s_hover_box">
											<input type="text" [(ngModel)]='startTime' class="form-control s_selected_time" id="datetimepicker1"  autocomplete="off" placeholder="选择开始时间"/>
											<span class="s_selected_time_spe">至</span>
											<input type="text" [(ngModel)]='endTime' class="form-control s_selected_time" id="datetimepicker2"  autocomplete="off" placeholder="选择结束时间"/>
											<div class="s_del_icon" (click)='del_date()'>x</div>
										</div>
									</div> -->
                  <div class="selectDate top_module">
                    <table-select-date
                      (outerTime)="getSelectChartTime($event)"
                      [notInit]="true"
                      [specifyTime]="specifyTime"
                    ></table-select-date>
                  </div>
                  <div class="top_module">
                    <span class="module_text">选择天数</span>
                    <select name="" id="" class="module_inp" [(ngModel)]="dateNumber" (change)="selectDate()">
                      <option value="">请选择</option>
                      <option value="10">近10天[默认]</option>
                      <option value="20">近20天</option>
                      <option value="30">近30天</option>
                      <option value="60">近60天</option>
                      <option value="90">近90天</option>
                      <option value="100">近100天</option>
                    </select>
                  </div>
                  <div class="top_module top_module_box">
                    <span class="module_text">操作人</span>
                    <input
                      type="text"
                      class="module_inp top_module_select"
                      [(ngModel)]="userName"
                      placeholder="操作人"
                    />
                  </div>
                  <div class="top_module top_module_box">
                    <span class="module_text">厂区运维负责人</span>
                    <sa-select2
                      select2ElementID="leaderSelectId"
                      (optionSelected)="optionTableSearch($event)"
                      [dataList]="operatorNameList"
                      [paramFormat]="paramFormat"
                      matchSearch="true"
                    ></sa-select2>
                    <!-- <input type="text" class="module_inp top_module_select" [(ngModel)]="operatorName" placeholder="厂区运维负责人" /> -->
                  </div>
                  <button type="button" class="btn btn-primary" (click)="table_search()">查询</button>
                  <button type="button" class="btn btn-primary" (click)="exportReport()">导出</button>
                  <button type="button" class="btn btn-primary" (click)="dataStatisticsClick(dataStatisticsModal)">
                    数据统计
                  </button>
                </div>
                <div class="right top-search">
                  <input
                    type="text"
                    [(ngModel)]="searchKey"
                    (change)="table_search()"
                    class="search-input"
                    placeholder="公司、地址、操作人..."
                  />
                  <span class="top-search-box">
                    <button class="top-search-btn" type="button" (click)="table_search()">
                      <i class="fa fa-search"></i>
                    </button>
                  </span>
                </div>
              </div>
              <!--<div style="height: 0px;"></div>-->
              <div class="">
                <ul
                  class="nav nav-tabs"
                  id="myTab"
                  style="padding-left: 12px; background-image: linear-gradient(#f1f5fd, #e9f0ff); padding: 0"
                >
                  <li class="active s-lis">
                    <a data-toggle="tab" href="#all" (click)="btnClick('all')">
                      全部
                      <span>{{ tabNumberList[0] }}</span>
                    </a>
                  </li>
                  <li class="s-lis">
                    <a data-toggle="tab" href="" (click)="btnClick('trans')">
                      运输中
                      <span class="orange">{{ tabNumberList[1] }}</span>
                    </a>
                  </li>
                  <li class="s-lis">
                    <a data-toggle="tab" href="" (click)="btnClick('waitDeal')">
                      待处理队列
                      <span class="red">{{ tabNumberList[8] }}</span>
                    </a>
                  </li>
                  <li class="s-lis">
                    <a data-toggle="tab" href="" (click)="btnClick('normal')">
                      正常卸货
                      <span class="green">{{ tabNumberList[2] }}</span>
                    </a>
                  </li>
                  <li class="s-lis">
                    <a data-toggle="tab" href="" (click)="btnClick('preOrder')">
                      预审失败[客户]
                      <span class="green">{{ tabNumberList[14] }}</span>
                    </a>
                  </li>
                  <li class="s-lis">
                    <a data-toggle="tab" href="" (click)="btnClick('abnormal')">
                      异常卸货
                      <span class="red">{{ tabNumberList[12] }}</span>
                    </a>
                  </li>
                  <!--<li class="s-lis"><a data-toggle="tab" href="" (click)="btnClick('gpsError')">GPS异常 <span class="red">{{tabNumberList[3]}}</span></a></li>
									<li class="s-lis"><a data-toggle="tab" href="" (click)="btnClick('dataError')">数据异常 <span class="red">{{tabNumberList[4]}}</span></a></li>-->
                  <li class="s-lis">
                    <a data-toggle="tab" href="" (click)="btnClick('gpsErrorSensorNormal')">
                      GPS异常[传感器正常]
                      <span class="red">{{ tabNumberList[15] }}</span>
                    </a>
                  </li>
                  <li class="s-lis">
                    <a data-toggle="tab" href="" (click)="btnClick('gpsErrorSensorAbnormal')">
                      GPS异常[传感器异常]
                      <span class="red">{{ tabNumberList[16] }}</span>
                    </a>
                  </li>
                  <li class="s-lis">
                    <a data-toggle="tab" href="" (click)="btnClick('dataErrorSensorNormal')">
                      数据异常[传感器正常]
                      <span class="red">{{ tabNumberList[17] }}</span>
                    </a>
                  </li>
                  <li class="s-lis">
                    <a data-toggle="tab" href="" (click)="btnClick('dataErrorSensorAbnormal')">
                      数据异常[传感器异常]
                      <span class="red">{{ tabNumberList[18] }}</span>
                    </a>
                  </li>
                  <li class="s-lis">
                    <a data-toggle="tab" href="" (click)="btnClick('plateHalf')">
                      平台处理[运输中]
                      <span class="red">{{ tabNumberList[21] }}</span>
                    </a>
                  </li>
                  <li class="s-lis">
                    <a data-toggle="tab" href="" (click)="btnClick('plateNormal')">
                      平台处理[正常卸货]
                      <span class="red">{{ tabNumberList[19] }}</span>
                    </a>
                  </li>
                  <li class="s-lis">
                    <a data-toggle="tab" href="" (click)="btnClick('deviceOffLine')">
                      设备离线
                      <span class="red">{{ tabNumberList[5] }}</span>
                    </a>
                  </li>
                  <li class="s-lis">
                    <a data-toggle="tab" href="" (click)="btnClick('secondLoading')">
                      二次上货
                      <span class="red">{{ tabNumberList[13] }}</span>
                    </a>
                  </li>
                  <li class="s-lis">
                    <a data-toggle="tab" href="" (click)="btnClick('systemMisjudgment')">
                      平台问题
                      <span class="red">{{ tabNumberList[6] }}</span>
                    </a>
                  </li>
                  <li class="s-lis">
                    <a data-toggle="tab" href="" (click)="btnClick('weightError')">
                      磅单问题
                      <span class="red">{{ tabNumberList[7] }}</span>
                    </a>
                  </li>
                  <li class="s-lis">
                    <a data-toggle="tab" href="" (click)="btnClick('blackout')">
                      断电问题
                      <span class="red">{{ tabNumberList[20] }}</span>
                    </a>
                  </li>
                  <li class="s-lis">
                    <a data-toggle="tab" href="" (click)="btnClick('algorithm')">
                      算法问题
                      <span class="red">{{ tabNumberList[9] }}</span>
                    </a>
                  </li>
                  <li class="s-lis">
                    <a data-toggle="tab" href="" (click)="btnClick('hwVersion')">
                      硬件问题
                      <span class="red">{{ tabNumberList[10] }}</span>
                    </a>
                  </li>
                  <li class="s-lis">
                    <a data-toggle="tab" href="" (click)="btnClick('MatLab')">
                      Matlab算法问题
                      <span class="red">{{ tabNumberList[11] }}</span>
                    </a>
                  </li>
                </ul>
              </div>
              <div class="table_scroll">
                <table
                  class="display dataTables responsive table table-striped table-bordered table-hover dataTable s_h5_table"
                >
                  <thead>
                    <tr>
                      <th>状态</th>
                      <th>处理状态</th>
                      <th>操作人</th>
                      <th>车牌号码</th>
                      <th>问题分类</th>
                      <th>现象分类</th>
                      <th>操作时间</th>
                      <th>进厂时间</th>
                      <th>安装厂区</th>
                      <th>提货厂区</th>
                      <th>客户</th>
                      <th>处理状态[算法]</th>
                      <th>问题类型[算法]</th>
                      <th>备注[算法]</th>
                      <th>处理人[算法]</th>
                      <th>是否投诉</th>
                      <th>异常描述</th>
                      <th>操作</th>
                    </tr>
                  </thead>
                  <tbody>
                    <tr
                      *ngFor="let row of tableData; let i = index"
                      [attr.data-index]="i"
                      [ngClass]="{ selected: activeSelected === row.id }"
                      (dblclick)="rowSelectEvent(row, row.id)"
                    >
                      <td>
                        <span
                          *ngIf="
                            row.orderStatus == 0 &&
                            row.checkStatus == 0 &&
                            (!row.isGpsError || row.isGpsError == 2) &&
                            btnNum != 'abnormal'
                          "
                          class="orange"
                        >
                          运输中
                        </span>
                        <span
                          *ngIf="
                            row.orderStatus != 0 &&
                            row.checkStatus == 0 &&
                            (!row.isGpsError || row.isGpsError == 2) &&
                            btnNum != 'abnormal'
                          "
                          class="green"
                        >
                          正常卸货
                        </span>
                        <span
                          *ngIf="
                            row.isGpsError == 1 &&
                            btnNum != 'abnormal' &&
                            btnNum != 'dataErrorSensorNormal' &&
                            btnNum != 'dataErrorSensorAbnormal'
                          "
                          class="red"
                        >
                          GPS异常
                        </span>
                        <span
                          *ngIf="
                            row.isGpsError == 3 &&
                            btnNum != 'abnormal' &&
                            btnNum != 'dataErrorSensorNormal' &&
                            btnNum != 'dataErrorSensorAbnormal'
                          "
                          class="red"
                        >
                          无GPS
                        </span>
                        <span
                          *ngIf="
                            row.isGpsError == 4 &&
                            btnNum != 'abnormal' &&
                            btnNum != 'dataErrorSensorNormal' &&
                            btnNum != 'dataErrorSensorAbnormal'
                          "
                          class="red"
                        >
                          停车速度平直
                        </span>
                        <span
                          *ngIf="
                            row.isGpsError == 5 &&
                            btnNum != 'abnormal' &&
                            btnNum != 'dataErrorSensorNormal' &&
                            btnNum != 'dataErrorSensorAbnormal'
                          "
                          class="red"
                        >
                          大段丢失
                        </span>
                        <span
                          *ngIf="
                            row.isGpsError == 6 &&
                            btnNum != 'abnormal' &&
                            btnNum != 'dataErrorSensorNormal' &&
                            btnNum != 'dataErrorSensorAbnormal'
                          "
                          class="red"
                        >
                          偶尔丢失
                        </span>
                        <span *ngIf="btnNum == 'abnormal'" class="red">异常卸货</span>
                        <!--<span *ngIf="row.isRail == 2 && (btnNum == 'all' ||btnNum == 'waitDeal')&& row.isGpsError != 1" class="red">异常卸货</span>-->
                        <span
                          *ngIf="
                            btnNum != 'abnormal' &&
                            btnNum != 'dataErrorSensorNormal' &&
                            btnNum != 'dataErrorSensorAbnormal' &&
                            (!row.isGpsError || row.isGpsError == 2) &&
                            row.checkStatus == 2
                          "
                          class="red"
                        >
                          未清零 [进厂]
                        </span>
                        <span
                          *ngIf="
                            btnNum != 'abnormal' &&
                            btnNum != 'dataErrorSensorNormal' &&
                            btnNum != 'dataErrorSensorAbnormal' &&
                            (!row.isGpsError || row.isGpsError == 2) &&
                            row.checkStatus == 3
                          "
                          class="red"
                        >
                          未识别上货 [离厂]
                        </span>
                        <span
                          *ngIf="
                            btnNum != 'abnormal' &&
                            btnNum != 'dataErrorSensorNormal' &&
                            btnNum != 'dataErrorSensorAbnormal' &&
                            (!row.isGpsError || row.isGpsError == 2) &&
                            row.checkStatus == 4
                          "
                          class="red"
                        >
                          重量突变 [在途]
                        </span>
                        <span
                          *ngIf="
                            btnNum != 'abnormal' &&
                            btnNum != 'dataErrorSensorNormal' &&
                            btnNum != 'dataErrorSensorAbnormal' &&
                            (!row.isGpsError || row.isGpsError == 2) &&
                            row.checkStatus == 5
                          "
                          class="red"
                        >
                          卸货未清零
                        </span>
                        <span
                          *ngIf="
                            btnNum != 'abnormal' &&
                            btnNum != 'dataErrorSensorNormal' &&
                            btnNum != 'dataErrorSensorAbnormal' &&
                            (!row.isGpsError || row.isGpsError == 2) &&
                            row.checkStatus == 6
                          "
                          class="red"
                        >
                          设备离线
                        </span>
                        <span
                          *ngIf="
                            btnNum != 'abnormal' &&
                            btnNum != 'dataErrorSensorNormal' &&
                            btnNum != 'dataErrorSensorAbnormal' &&
                            (!row.isGpsError || row.isGpsError == 2) &&
                            row.checkStatus == 7
                          "
                          class="red"
                        >
                          平台问题
                        </span>
                        <span
                          *ngIf="
                            btnNum != 'abnormal' &&
                            btnNum != 'dataErrorSensorNormal' &&
                            btnNum != 'dataErrorSensorAbnormal' &&
                            (!row.isGpsError || row.isGpsError == 2) &&
                            row.checkStatus == 8
                          "
                          class="red"
                        >
                          垂直卸货
                        </span>
                        <span
                          *ngIf="
                            btnNum != 'abnormal' &&
                            btnNum != 'dataErrorSensorNormal' &&
                            btnNum != 'dataErrorSensorAbnormal' &&
                            (!row.isGpsError || row.isGpsError == 2) &&
                            row.checkStatus == 9
                          "
                          class="red"
                        >
                          磅单问题
                        </span>
                        <span
                          *ngIf="
                            btnNum != 'abnormal' &&
                            btnNum != 'dataErrorSensorNormal' &&
                            btnNum != 'dataErrorSensorAbnormal' &&
                            (!row.isGpsError || row.isGpsError == 2) &&
                            row.checkStatus == 10
                          "
                          class="red"
                        >
                          异常订单
                        </span>
                        <span
                          *ngIf="
                            btnNum != 'abnormal' &&
                            btnNum != 'dataErrorSensorNormal' &&
                            btnNum != 'dataErrorSensorAbnormal' &&
                            (!row.isGpsError || row.isGpsError == 2) &&
                            row.checkStatus == 11
                          "
                          class="red"
                        >
                          卸货有速度
                        </span>

                        <span
                          *ngIf="
                            (btnNum == 'dataErrorSensorNormal' || btnNum == 'dataErrorSensorAbnormal') &&
                            row.checkStatus == 2
                          "
                          class="red"
                        >
                          未清零 [进厂]
                        </span>
                        <span
                          *ngIf="
                            (btnNum == 'dataErrorSensorNormal' || btnNum == 'dataErrorSensorAbnormal') &&
                            row.checkStatus == 3
                          "
                          class="red"
                        >
                          未识别上货 [离厂]
                        </span>
                        <span
                          *ngIf="
                            (btnNum == 'dataErrorSensorNormal' || btnNum == 'dataErrorSensorAbnormal') &&
                            row.checkStatus == 4
                          "
                          class="red"
                        >
                          重量突变 [在途]
                        </span>
                        <span
                          *ngIf="
                            (btnNum == 'dataErrorSensorNormal' || btnNum == 'dataErrorSensorAbnormal') &&
                            row.checkStatus == 5
                          "
                          class="red"
                        >
                          卸货未清零
                        </span>
                        <span
                          *ngIf="
                            (btnNum == 'dataErrorSensorNormal' || btnNum == 'dataErrorSensorAbnormal') &&
                            row.checkStatus == 6
                          "
                          class="red"
                        >
                          设备离线
                        </span>
                        <span
                          *ngIf="
                            (btnNum == 'dataErrorSensorNormal' || btnNum == 'dataErrorSensorAbnormal') &&
                            row.checkStatus == 7
                          "
                          class="red"
                        >
                          平台问题
                        </span>
                        <span
                          *ngIf="
                            (btnNum == 'dataErrorSensorNormal' || btnNum == 'dataErrorSensorAbnormal') &&
                            row.checkStatus == 8
                          "
                          class="red"
                        >
                          垂直卸货
                        </span>
                        <span
                          *ngIf="
                            (btnNum == 'dataErrorSensorNormal' || btnNum == 'dataErrorSensorAbnormal') &&
                            row.checkStatus == 9
                          "
                          class="red"
                        >
                          磅单问题
                        </span>
                        <span
                          *ngIf="
                            (btnNum == 'dataErrorSensorNormal' || btnNum == 'dataErrorSensorAbnormal') &&
                            row.checkStatus == 10
                          "
                          class="red"
                        >
                          异常订单
                        </span>
                        <span
                          *ngIf="
                            (btnNum == 'dataErrorSensorNormal' || btnNum == 'dataErrorSensorAbnormal') &&
                            row.checkStatus == 11
                          "
                          class="red"
                        >
                          卸货有速度
                        </span>
                      </td>
                      <td>
                        <span *ngIf="row.detailStatus === 0" class="orange">待处理</span>
                        <span *ngIf="row.detailStatus === 1" class="green">人工处理</span>
                        <span *ngIf="row.detailStatus === 2" class="green">算法处理</span>
                        <span *ngIf="row.detailStatus === 3" class="green">无异常</span>
                      </td>
                      <td>{{ row.detailUserName }}</td>
                      <td>{{ row.carNumber }}</td>
                      <td>{{ row.exceptionType }}</td>
                      <!-- 为平台其他问题的在列中增加问题描述 -->
                      <td *ngIf="row.programTypeKey != 700">{{ row.programType }}</td>
                      <td *ngIf="row.programTypeKey == 700">
                        {{ row.programType
                        }}{{ row.platformIssueDescription ? ':' + row.platformIssueDescription : '' }}
                      </td>
                      <td>{{ row.detailTime }}</td>
                      <td>{{ row.emptyLoadTime }}</td>
                      <td>{{ row.companyName }}</td>
                      <td>{{ row.factoryName }}</td>
                      <td>{{ row.corname }}</td>
                      <td>
                        <span *ngIf="row.algorithmProcessingStatus == 0">未解决</span>
                        <span *ngIf="row.algorithmProcessingStatus == 1">已解决</span>
                        <span *ngIf="row.algorithmProcessingStatus == 2">其他</span>
                      </td>
                      <td>{{ row.algorithmProblemTypes }}</td>
                      <td>{{ row.algorithmNotes }}</td>
                      <td>{{ row.algorithmProcessor }}</td>
                      <td>
                        <span *ngIf="row.isComplaint == 1">被投诉</span>
                      </td>
                      <td>{{ row.exceptionRemark }}</td>
                      <td>
                        <button type="button" (click)="dealAlgorithm(row, dealAlgorithmModal)">处理[算法]</button>
                        <button type="button" (click)="delete_Row(row)" *ngIf="isDelete">删除</button>
                        <!--<button type="button" (click)="dealRow(row,dealModal)">处理</button>-->
                        <button type="button" (click)="rowSelectEvent(row, row.id)">查看</button>
                        <button type="button" (click)="pathFixed(row)">GPS修复</button>
                      </td>
                    </tr>
                  </tbody>
                </table>
              </div>
              <div class="table-fix clearfix">
                <paginator
                  [totalRecords]="totalCounts"
                  [rows]="pageSize"
                  [currentPage]="curPage - 1"
                  (onPageChange)="paginate($event)"
                ></paginator>
                <button type="button" class="btn default refresh_btn" (click)="refresh()">
                  <i class="fa fa-refresh"></i>
                </button>
              </div>
            </div>
          </div>
        </div>
      </div>
    </sa-widgets-grid>
  </div>
</div>

<!-- 设备详情信息    弹窗-->
<div id="deviceDetailModal">
  <div class="modal-dialog modal-lg" style="width: 1400px; margin: 0">
    <div class="modal-content">
      <div class="modal-header" id="headDrag">
        <button type="button" class="close" (click)="cancelDeviceDetail()" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
        <h4 class="modal-title">
          详情信息
          <!--<span class="note">[ 注: 鼠标点击可拖动 ]</span>-->
          <span *ngIf="selectedRow && !selectedRow.isFixWeight" class="green bold">[ 未运行算法 ]</span>
          <span *ngIf="selectedRow && selectedRow.isFixWeight == 1" class="green bold">[ 算法正常运行 ]</span>
          <span *ngIf="selectedRow && selectedRow.isFixWeight == 2" class="green bold">[ 算法未识别上货 ]</span>
          <span *ngIf="selectedRow && selectedRow.isFixWeight == 3" class="green bold">[ 算法未清零 ]</span>
          <span *ngIf="ismWeight" class="green bold">[ 算法修正 ]</span>
          <span *ngIf="isRectifyWeight" class="green bold">[ 人工修正 ]</span>
          <span *ngIf="deviceRepairedIspushFlag" class="red bold">[ 车辆限制进厂 ]</span>
        </h4>

        <div class="selectDate top_module" style="position: absolute; right: 36px; top: 10px">
          <button
            type="button"
            class="btn btn-primary"
            (click)="orderDetailSearch()"
            style="float: right; height: 28px; margin-left: 12px"
          >
            查看
          </button>
          <div class="input-daterange input-group s_selected_time_box s_hover_box" style="float: right">
            <input
              type="text"
              [(ngModel)]="echartStartDate"
              (change)="startDateChange()"
              class="form-control s_selected_time"
              id="datetimepicker3"
              autocomplete="off"
              placeholder="选择开始时间"
            />
            <span class="s_selected_time_spe">至</span>
            <input
              type="text"
              [(ngModel)]="echartEndDate"
              (change)="endDateChange()"
              class="form-control s_selected_time"
              id="datetimepicker4"
              autocomplete="off"
              placeholder="选择结束时间"
            />
            <!-- <div class="s_del_icon" (click)='del_dateBtn()'>x</div> -->
          </div>
          <button
            type="button"
            *ngIf="orderVersionUpdate"
            class="btn btn-primary btn-sm"
            (click)="versionUpdate()"
            style="float: right"
          >
            固件升级
          </button>
          <button
            type="button"
            *ngIf="selectedRow && selectedRow.showJoinMatlabList"
            class="btn btn-primary btn-sm"
            (click)="addMatlab()"
            style="float: right"
          >
            加入算法队列
          </button>
          <button
            type="button"
            *ngIf="!(selectedRow && selectedRow.showJoinMatlabList)"
            class="btn btn-primary btn-sm"
            disabled
            style="float: right; cursor: not-allowed"
          >
            加入算法队列
          </button>
        </div>
      </div>
      <div class="modal-body" style="padding: 0; background-color: #ffffff">
        <div class="form-horizontal">
          <div>
            <div class="tabbable">
              <ul
                class="nav nav-tabs"
                id="myTab"
                style="padding-left: 12px; background-image: linear-gradient(#f1f5fd, #e9f0ff)"
              >
                <li class="active s-lis" (click)="getTabData('chart')">
                  <a data-toggle="tab" href="#all">
                    订单信息
                    <span id="allOrders"></span>
                  </a>
                </li>
                <li class="s-lis" (click)="getTabData('8')"><a data-toggle="tab" href="#timeline">设备事件</a></li>
                <li class="s-lis" (click)="getTabData('')"><a data-toggle="tab" href="#deviceInfo">设备信息</a></li>
                <li class="s-lis">
                  <a data-toggle="tab" href="#waitRepaired" (click)="getTabData('4_1')">
                    待维修
                    <span class="orange">{{ repairedDeviceInfo.waitFixedCount }}</span>
                  </a>
                </li>
                <li class="s-lis">
                  <a data-toggle="tab" href="#repaired" (click)="getTabData('4_2')">
                    已维修
                    <span class="green">{{ repairedDeviceInfo.fixedCount }}</span>
                  </a>
                </li>
                <li class="s-lis">
                  <a data-toggle="tab" class="reqRecord" href="#question" (click)="getTabData('1')">
                    问题记录
                    <span class="red">{{ questionRecordTotal }}</span>
                  </a>
                </li>
                <li class="s-lis">
                  <a data-toggle="tab" href="#dataWaitFix" (click)="getTabData('2_1')">
                    数据待修复
                    <span class="orange">{{ dataFixInfo.exceptionOrderCount }}</span>
                  </a>
                </li>
                <li class="s-lis">
                  <a data-toggle="tab" href="#dataFix" (click)="getTabData('2')">
                    数据修复
                    <span class="green">
                      {{ dataFixInfo.dataFixCount + dataFixInfo.truckFixCount || dataFixedCount }}
                    </span>
                  </a>
                </li>

                <li class="s-lis">
                  <a data-toggle="tab" class="alertRecord" href="#alert" (click)="getTabData('3')">
                    警报记录
                    <span class="red">
                      {{
                        alertDataInfo.shutDownCount +
                          alertDataInfo.offLineCount +
                          alertDataInfo.shutDownExceptionCount || alertTotalCount
                      }}
                    </span>
                  </a>
                </li>
                <li class="s-lis">
                  <a data-toggle="tab" href="#weightData" (click)="getTabData('7')">
                    地磅数据
                    <span class="status-purple"></span>
                  </a>
                </li>
                <li class="s-lis">
                  <a data-toggle="tab" href="#version" (click)="getTabData('5')">
                    固件升级
                    <span class="status-purple"></span>
                  </a>
                </li>
                <li class="s-lis">
                  <a data-toggle="tab" href="#coef" (click)="getTabData('6')">
                    系数设置
                    <span class="status-purple"></span>
                  </a>
                </li>
              </ul>
              <div class="tab-content" style="padding: 20px; padding-top: 0; border: none">
                <div id="all" class="tab-pane active">
                  <div class="clearfix">
                    <div id="popPage1">
                      <div
                        class="device-module clearfix new-page order-info-page"
                        *ngIf="selectedRow"
                        style="margin: 10px 0; padding-bottom: 0; position: relative"
                      >
                        <div
                          class="group-record"
                          style="
                            position: absolute;
                            right: 0px;
                            top: 0px;
                            border: 1px solid #ccc;
                            width: 365px;
                            height: 100%;
                            overflow-y: auto;
                            font-size: 12px;
                            display: flex;
                            padding: 5px;
                          "
                        >
                          <div class="row form-horizontal" style="flex: 1">
                            <div class="form-group col-xs-12">
                              <label class="control-label col-sm-3 no-padding-right">
                                群名称
                                <sup>*</sup>
                              </label>
                              <div class="col-sm-9">
                                <input
                                  class="form-control"
                                  name="groupNameInput"
                                  id="groupNameInput"
                                  [(ngModel)]="groupMessageFrom.groupName"
                                />
                              </div>
                            </div>
                            <div class="form-group col-xs-12">
                              <label class="control-label col-sm-3 no-padding-right">
                                提问题的人
                                <sup>*</sup>
                              </label>
                              <div class="col-sm-9">
                                <input
                                  class="form-control"
                                  name="questionerInput"
                                  [(ngModel)]="groupMessageFrom.questioner"
                                />
                              </div>
                            </div>

                            <div class="form-group col-xs-12">
                              <label class="control-label col-sm-3 no-padding-right">
                                问题
                                <sup>*</sup>
                              </label>
                              <div class="col-sm-9">
                                <input
                                  class="form-control"
                                  name="questionInput"
                                  [(ngModel)]="groupMessageFrom.question"
                                />
                              </div>
                            </div>

                            <div class="form-group col-xs-12">
                              <label class="control-label col-sm-3 no-padding-right">
                                归类
                                <sup>*</sup>
                              </label>
                              <div class="col-sm-9">
                                <select
                                  id="groupMsgType"
                                  name="groupMsgType"
                                  [(ngModel)]="groupMessageFrom.type"
                                  class="form-control inline_block fix_padding bottomborder"
                                  (change)="msgTypeChange()"
                                >
                                  <option value="">请选择</option>
                                  <option value="1">设备状态查询</option>
                                  <option value="2">订单-传感器问题</option>
                                  <option value="3">订单-GPS问题</option>
                                  <option value="4">订单-离线</option>
                                  <option value="5">订单-算法问题</option>
                                  <option value="6">订单-磅单问题</option>
                                  <option value="7">订单-数据正常</option>
                                  <option value="8">续费</option>
                                  <option value="9">同步</option>
                                  <option value="10">更改ID</option>
                                  <option value="11">移机-改车牌</option>
                                  <option value="12">临时放行</option>
                                  <option value="13">录车</option>
                                </select>
                              </div>
                            </div>

                            <div class="form-group col-xs-12" style="padding-bottom: 5px">
                              <label class="control-label col-sm-3 no-padding-right">备注</label>
                              <div class="col-sm-9">
                                <input
                                  class="form-control"
                                  name="questionInput"
                                  [(ngModel)]="groupMessageFrom.remark"
                                />
                              </div>
                            </div>
                          </div>
                          <div>
                            <button
                              class="btn btn-primary"
                              (click)="groupMessageSubmit()"
                              style="
                                margin: 0;
                                margin-top: 28px;
                                min-width: 0;
                                width: 48px;
                                height: 60px;
                                font-size: 12px;
                                margin-right: 8px;
                              "
                            >
                              记录
                            </button>
                            <div
                              *ngIf="msgHistoryList.length > 0"
                              class="massage-history"
                              (click)="showHistoryModal(msgHistoryModal)"
                            >
                              历史
                            </div>
                          </div>
                        </div>

                        <div class="item-box">
                          <span class="item-key">基本信息:</span>
                          <span class="item-value">{{ selectedRow.carNumber }}</span>
                          <span class="item-value stand_out">{{ deviceBaseInfo.userTypeName }}</span>
                          <span class="item-value">{{ deviceBaseInfo.userNameForCreate }}</span>
                          <span class="item-value">{{ deviceBaseInfo.inputDate }}</span>
                          <span class="item-value stand_out">{{ selectedRow.companyName }}</span>
                          <span class="item-value table_scroll" [attr.title]="deviceBaseInfo.sensorChannel">
                            <span
                              class="channel-style bg-green"
                              [ngClass]="{ 'bg-normal': !item.flag }"
                              *ngFor="let item of deviceBaseInfo.sensorChannelT"
                            >
                              {{ item.value }}
                            </span>
                            <span *ngIf="deviceBaseInfo.sensorChannel.length == 0">--</span>
                          </span>
                          <span class="item-value" [attr.title]="">
                            <sa-sensor-type
                              [sensorTypeId]="deviceBaseInfo.sensorType"
                              [inputParam]="inputParam"
                              type="2"
                              [isSendRequest]="false"
                            ></sa-sensor-type>
                          </span>
                          <span class="item-value">ID:</span>
                          <span class="item-value">{{ deviceBaseInfo.deviceId }}</span>
                          <span class="item-value" *ngIf="deviceBaseInfo.phone">司机电话:</span>
                          <span class="item-value">{{ deviceBaseInfo.phone }}</span>
                          <span class="item-value" *ngIf="deviceBaseInfo.hwVersion">硬件版本号:</span>
                          <span class="item-value stand_out">{{ deviceBaseInfo.hwVersion }}</span>
                          <span class="item-value" *ngIf="selectedRow.inFactory == 1">提货厂区:</span>
                          <span class="item-value" *ngIf="selectedRow.inFactory == 1">
                            {{ selectedRow.factoryName }}
                          </span>
                        </div>

                        <div class="item-box" *ngIf="deviceBaseInfo.upgradeInfo || deviceBaseInfo.logForCoef">
                          <span class="item-key">操作信息:</span>
                          <span class="item-value">{{ deviceBaseInfo.upgradeInfo.userName }}</span>
                          <span class="item-value">{{ deviceBaseInfo.upgradeInfo.createTime }}</span>
                          <span *ngIf="deviceBaseInfo.upgradeInfo.version">升级</span>
                          <span class="item-value stand_out">{{ deviceBaseInfo.upgradeInfo.version }}</span>

                          <span class="item-value">{{ deviceBaseInfo.logForCoef.userName }}</span>
                          <span class="item-value">{{ deviceBaseInfo.logForCoef.createTime }}</span>
                          <span *ngIf="deviceBaseInfo.coef">设置</span>
                          <span class="item-value" [attr.title]="deviceBaseInfo.coef">
                            <span *ngIf="deviceBaseInfo.coefT.length > 0">
                              <span>[</span>
                              <span *ngFor="let lis of deviceBaseInfo.coefT; let i = index">
                                <span>CH{{ lis.index }}:</span>
                                <span>
                                  {{ lis.value }}
                                  <span *ngIf="i < deviceBaseInfo.coefT.length - 1">,</span>
                                </span>
                              </span>
                              <span>]</span>
                            </span>
                            <span *ngIf="deviceBaseInfo.coefT.length == 0">--</span>
                          </span>
                        </div>

                        <div class="item-box">
                          <span class="item-key">状态信息:</span>
                          <span class="item-value" [attr.title]="">
                            <span class="red" *ngIf="versionMessage.runStatus == '0'">
                              离线
                              <span *ngIf="versionMessage.alarmType">{{ versionMessage.alarmType }}</span>
                            </span>
                            <span class="green" *ngIf="versionMessage.runStatus !== '0'">在线</span>
                            <span class="red" *ngIf="versionMessage.isShowGPS">[GPS更新异常]</span>
                          </span>
                          <span class="item-value">载重更新:</span>
                          <span class="item-value" [attr.title]="">{{ versionMessage.carUploadDate }}</span>
                          <span class="item-value">GPS更新:</span>
                          <span class="item-value" [attr.title]="">{{ versionMessage.gpsUploadDate }}</span>
                        </div>
                        <div class="item-box">
                          <span class="item-key">订单信息:</span>
                          <span class="item-value">订单状态:</span>
                          <span class="item-value" [attr.title]="">
                            <span
                              *ngIf="
                                selectedRow.orderStatus == 0 &&
                                selectedRow.checkStatus == 0 &&
                                (!selectedRow.isGpsError || selectedRow.isGpsError == 2) &&
                                btnNum != 'abnormal'
                              "
                              class="orange"
                            >
                              运输中
                            </span>
                            <span
                              *ngIf="
                                selectedRow.orderStatus != 0 &&
                                selectedRow.checkStatus == 0 &&
                                (!selectedRow.isGpsError || selectedRow.isGpsError == 2) &&
                                btnNum != 'abnormal'
                              "
                              class="green"
                            >
                              正常卸货
                            </span>
                            <span
                              *ngIf="
                                btnNum != 'dataErrorSensorNormal' &&
                                btnNum != 'dataErrorSensorAbnormal' &&
                                btnNum != 'abnormal' &&
                                selectedRow.isGpsError &&
                                selectedRow.isGpsError != 2
                              "
                              class="red"
                            >
                              <span *ngIf="selectedRow.isGpsError == 1 && btnNum != 'abnormal'" class="red">
                                GPS异常
                              </span>
                              <span *ngIf="selectedRow.isGpsError == 3 && btnNum != 'abnormal'" class="red">无GPS</span>
                              <span *ngIf="selectedRow.isGpsError == 4 && btnNum != 'abnormal'" class="red">
                                停车速度平直
                              </span>
                              <span *ngIf="selectedRow.isGpsError == 5 && btnNum != 'abnormal'" class="red">
                                大段丢失
                              </span>
                              <span *ngIf="selectedRow.isGpsError == 6 && btnNum != 'abnormal'" class="red">
                                偶尔丢失
                              </span>
                              <span *ngIf="selectedRow.checkStatus == 2" class="red" title="未清零 [进厂]">
                                -未清零 [进厂]
                              </span>
                              <span *ngIf="selectedRow.checkStatus == 3" class="red" title="未识别上货 [离厂]">
                                -未识别上货 [离厂]
                              </span>
                              <span *ngIf="selectedRow.checkStatus == 4" class="red" title="重量突变 [在途]">
                                -重量突变 [在途]
                              </span>
                              <span *ngIf="selectedRow.checkStatus == 5" class="red" title="卸货未清零">
                                -卸货未清零
                              </span>
                              <span *ngIf="selectedRow.checkStatus == 6" class="red" title="设备离线">-设备离线</span>
                              <span *ngIf="selectedRow.checkStatus == 7" class="red" title="平台问题">-平台问题</span>
                              <span *ngIf="selectedRow.checkStatus == 8" class="red" title="垂直卸货">-垂直卸货</span>
                              <span *ngIf="selectedRow.checkStatus == 9" class="red" title="磅单问题">-磅单问题</span>
                              <span *ngIf="selectedRow.checkStatus == 10" class="red" title="异常订单">-异常订单</span>
                              <span *ngIf="selectedRow.checkStatus == 11" class="red" title="卸货有速度">
                                -卸货有速度
                              </span>
                            </span>
                            <span *ngIf="btnNum == 'abnormal'" class="red">异常卸货</span>
                            <span
                              *ngIf="
                                btnNum != 'abnormal' &&
                                btnNum != 'dataErrorSensorNormal' &&
                                btnNum != 'dataErrorSensorAbnormal' &&
                                (!selectedRow.isGpsError || selectedRow.isGpsError == 2) &&
                                selectedRow.checkStatus == 2
                              "
                              class="red"
                            >
                              未清零 [进厂]
                            </span>
                            <span
                              *ngIf="
                                btnNum != 'abnormal' &&
                                btnNum != 'dataErrorSensorNormal' &&
                                btnNum != 'dataErrorSensorAbnormal' &&
                                (!selectedRow.isGpsError || selectedRow.isGpsError == 2) &&
                                selectedRow.checkStatus == 3
                              "
                              class="red"
                            >
                              未识别上货 [离厂]
                            </span>
                            <span
                              *ngIf="
                                btnNum != 'abnormal' &&
                                btnNum != 'dataErrorSensorNormal' &&
                                btnNum != 'dataErrorSensorAbnormal' &&
                                (!selectedRow.isGpsError || selectedRow.isGpsError == 2) &&
                                selectedRow.checkStatus == 4
                              "
                              class="red"
                            >
                              重量突变 [在途]
                            </span>
                            <span
                              *ngIf="
                                btnNum != 'abnormal' &&
                                btnNum != 'dataErrorSensorNormal' &&
                                btnNum != 'dataErrorSensorAbnormal' &&
                                (!selectedRow.isGpsError || selectedRow.isGpsError == 2) &&
                                selectedRow.checkStatus == 5
                              "
                              class="red"
                            >
                              卸货未清零
                            </span>
                            <span
                              *ngIf="
                                btnNum != 'abnormal' &&
                                btnNum != 'dataErrorSensorNormal' &&
                                btnNum != 'dataErrorSensorAbnormal' &&
                                (!selectedRow.isGpsError || selectedRow.isGpsError == 2) &&
                                selectedRow.checkStatus == 6
                              "
                              class="red"
                            >
                              设备离线
                            </span>
                            <span
                              *ngIf="
                                btnNum != 'abnormal' &&
                                btnNum != 'dataErrorSensorNormal' &&
                                btnNum != 'dataErrorSensorAbnormal' &&
                                (!selectedRow.isGpsError || selectedRow.isGpsError == 2) &&
                                selectedRow.checkStatus == 7
                              "
                              class="red"
                            >
                              平台问题
                            </span>
                            <span
                              *ngIf="
                                btnNum != 'abnormal' &&
                                btnNum != 'dataErrorSensorNormal' &&
                                btnNum != 'dataErrorSensorAbnormal' &&
                                (!selectedRow.isGpsError || selectedRow.isGpsError == 2) &&
                                selectedRow.checkStatus == 8
                              "
                              class="red"
                            >
                              垂直卸货
                            </span>
                            <span
                              *ngIf="
                                btnNum != 'abnormal' &&
                                btnNum != 'dataErrorSensorNormal' &&
                                btnNum != 'dataErrorSensorAbnormal' &&
                                (!selectedRow.isGpsError || selectedRow.isGpsError == 2) &&
                                selectedRow.checkStatus == 9
                              "
                              class="red"
                            >
                              磅单问题
                            </span>
                            <span
                              *ngIf="
                                btnNum != 'abnormal' &&
                                btnNum != 'dataErrorSensorNormal' &&
                                btnNum != 'dataErrorSensorAbnormal' &&
                                (!selectedRow.isGpsError || selectedRow.isGpsError == 2) &&
                                selectedRow.checkStatus == 10
                              "
                              class="red"
                            >
                              异常订单
                            </span>
                            <span
                              *ngIf="
                                btnNum != 'abnormal' &&
                                btnNum != 'dataErrorSensorNormal' &&
                                btnNum != 'dataErrorSensorAbnormal' &&
                                (!selectedRow.isGpsError || selectedRow.isGpsError == 2) &&
                                selectedRow.checkStatus == 11
                              "
                              class="red"
                            >
                              卸货有速度
                            </span>

                            <span
                              *ngIf="
                                (btnNum == 'dataErrorSensorNormal' || btnNum == 'dataErrorSensorAbnormal') &&
                                selectedRow.checkStatus == 2
                              "
                              class="red"
                            >
                              未清零 [进厂]
                            </span>
                            <span
                              *ngIf="
                                (btnNum == 'dataErrorSensorNormal' || btnNum == 'dataErrorSensorAbnormal') &&
                                selectedRow.checkStatus == 3
                              "
                              class="red"
                            >
                              未识别上货 [离厂]
                            </span>
                            <span
                              *ngIf="
                                (btnNum == 'dataErrorSensorNormal' || btnNum == 'dataErrorSensorAbnormal') &&
                                selectedRow.checkStatus == 4
                              "
                              class="red"
                            >
                              重量突变 [在途]
                            </span>
                            <span
                              *ngIf="
                                (btnNum == 'dataErrorSensorNormal' || btnNum == 'dataErrorSensorAbnormal') &&
                                selectedRow.checkStatus == 5
                              "
                              class="red"
                            >
                              卸货未清零
                            </span>
                            <span
                              *ngIf="
                                (btnNum == 'dataErrorSensorNormal' || btnNum == 'dataErrorSensorAbnormal') &&
                                selectedRow.checkStatus == 6
                              "
                              class="red"
                            >
                              设备离线
                            </span>
                            <span
                              *ngIf="
                                (btnNum == 'dataErrorSensorNormal' || btnNum == 'dataErrorSensorAbnormal') &&
                                selectedRow.checkStatus == 7
                              "
                              class="red"
                            >
                              平台问题
                            </span>
                            <span
                              *ngIf="
                                (btnNum == 'dataErrorSensorNormal' || btnNum == 'dataErrorSensorAbnormal') &&
                                selectedRow.checkStatus == 8
                              "
                              class="red"
                            >
                              垂直卸货
                            </span>
                            <span
                              *ngIf="
                                (btnNum == 'dataErrorSensorNormal' || btnNum == 'dataErrorSensorAbnormal') &&
                                selectedRow.checkStatus == 9
                              "
                              class="red"
                            >
                              磅单问题
                            </span>
                            <span
                              *ngIf="
                                (btnNum == 'dataErrorSensorNormal' || btnNum == 'dataErrorSensorAbnormal') &&
                                selectedRow.checkStatus == 10
                              "
                              class="red"
                            >
                              异常订单
                            </span>
                            <span
                              *ngIf="
                                (btnNum == 'dataErrorSensorNormal' || btnNum == 'dataErrorSensorAbnormal') &&
                                selectedRow.checkStatus == 11
                              "
                              class="red"
                            >
                              卸货有速度
                            </span>
                          </span>
                          <span class="item-value">处理状态:</span>
                          <span class="item-value" [attr.title]="">
                            <span *ngIf="selectedRow.detailStatus === 0" class="orange">待处理</span>
                            <span *ngIf="selectedRow.detailStatus === 1" class="green">人工处理</span>
                            <span *ngIf="selectedRow.detailStatus === 2" class="green">算法处理</span>
                            <span *ngIf="selectedRow.detailStatus === 3" class="green">无异常</span>
                          </span>
                          <span class="item-value">磅单重量[吨]:</span>
                          <span class="item-value">{{ selectedRow.sendWeight }}</span>
                          <span class="item-value">进厂时间:</span>
                          <span class="item-value">{{ selectedRow.emptyLoadTime }}</span>
                          <span class="item-value">离厂时间:</span>
                          <span class="item-value stand_out">{{ selectedRow.fullLoadTime }}</span>
                          <span class="item-value" *ngIf="selectedRow.exceptionRemark">客户推送:</span>
                          <span class="item-value">{{ selectedRow.exceptionRemark }}</span>
                        </div>
                        <div class="item-box" *ngIf="selectedRow.remark" style="padding-right: 280px">
                          <span class="item-key">判断信息:</span>
                          <span class="item-value red" [attr.title]="selectedRow.remark">{{ selectedRow.remark }}</span>
                        </div>
                        <div class="item-box" *ngIf="deviceBaseInfo.repaired">
                          <span class="item-key">待维修:</span>
                          <span class="item-value stand_out">{{ deviceBaseInfo.repaired.lastUpdateUser }}</span>
                          <span class="item-value stand_out">{{ deviceBaseInfo.repaired.lastUpdateTime }}</span>
                          <span class="item-value stand_out">{{ deviceBaseInfo.repaired.faultTypeName }}</span>
                          <span class="item-value stand_out">
                            <span *ngIf="deviceBaseInfo.repaired.isPush == '1'">限制进厂</span>
                            <span *ngIf="deviceBaseInfo.repaired.isPush == '0'">不限制进厂</span>
                          </span>
                        </div>
                        <div
                          class="item-box"
                          *ngIf="selectedRow.repairedRecords && selectedRow.repairedRecords.length > 0"
                        >
                          <span class="item-key">维修信息:</span>
                          <span class="item-value stand_out">{{ selectedRow.repairedUser }}</span>
                          <span class="item-value stand_out">{{ selectedRow.lastServiceTime }}</span>
                          <span
                            class="item-value stand_out"
                            [attr.title]="selectedRow.repairedRecords && selectedRow.repairedRecords"
                          >
                            <span *ngIf="selectedRow.repairedRecords && selectedRow.repairedRecords.length > 0">
                              <span *ngFor="let lis of selectedRow.repairedRecords">
                                <span>{{ lis }}</span>
                              </span>
                            </span>
                            <span
                              *ngIf="
                                selectedRow.repairedRecords == null ||
                                selectedRow.repairedRecords == undefined ||
                                selectedRow.repairedRecords.length == 0
                              "
                            >
                              --
                            </span>
                          </span>
                        </div>
                        <div class="item-box" *ngIf="renewalInfo.renewalDueTime && renewalInfo.isSyncRenewal">
                          <span class="item-key">续费信息:</span>
                          <span
                            class="item-value stand_out"
                            [ngClass]="{
                              isDieLine: renewalInfo.isOverDate == '已到期',
                              noDieLine: renewalInfo.isOverDate != '已到期'
                            }"
                          >
                            {{ renewalInfo.isOverDate }}
                          </span>
                          <span class="item-value">到期时间:</span>
                          <span class="item-value">{{ renewalInfo.renewalDueTime }}</span>
                          <button
                            _ngcontent-c9=""
                            style="padding: 2px 8px !important; font-size: 12px"
                            class="btn btn-primary"
                            type="button"
                            (click)="goRenewal()"
                          >
                            跳转续费页面
                          </button>
                          <span *ngIf="selectedRow.needRepaired === 1" style="color: #d15b47">限制不住：是</span>
                          <span *ngIf="selectedRow.needRepaired === 0">限制不住：否</span>
                        </div>
                      </div>

                      <!--<div class="device-module clearfix" *ngIf='selectedRow' style="margin: 10px 0 0 0;padding-bottom: 0;">
												<div class="item-box self-xs-20 no-padding"><span class="item-key">车牌号码</span><span class="item-value" [attr.title]="">{{selectedRow.carNumber||'--'}}</span><span *ngIf="selectedRow.deviceId">[{{selectedRow.deviceId}}]</span></div>
												<div class="item-box self-xs-20 no-padding"><span class="item-key">公司名称</span><span class="item-value" [attr.title]="">{{selectedRow.companyName||'--'}}</span></div>
												<div class="item-box self-xs-20 no-padding"><span class="item-key">安装时间</span><span class="item-value" [attr.title]="">{{deviceBaseInfo.inputDate||'--'}}</span></div>
												<div class="item-box self-xs-20 no-padding"><span class="item-key">录入人员</span><span class="item-value" [attr.title]="">{{deviceBaseInfo.userNameForCreate||'--'}}</span></div>
												<div class="item-box self-xs-20 no-padding"><span class="item-key">车辆用途</span><span class="item-value" [attr.title]="">{{deviceBaseInfo.userTypeName||'--'}}</span></div>
												<div class="item-box self-xs-20 no-padding"><span class="item-key">订单状态</span><span class="item-value" [attr.title]="">
													<span *ngIf="selectedRow.orderStatus == 0 && selectedRow.checkStatus == 0 && (!selectedRow.isGpsError || selectedRow.isGpsError == 2 ) && btnNum != 'abnormal'" class="orange">运输中</span>
										            <span *ngIf="selectedRow.orderStatus !=0 && selectedRow.checkStatus == 0 && (!selectedRow.isGpsError || selectedRow.isGpsError == 2 ) && btnNum != 'abnormal'" class="green">正常卸货</span>
													<span *ngIf="btnNum != 'dataErrorSensorNormal' && btnNum != 'dataErrorSensorAbnormal' && btnNum != 'abnormal' && selectedRow.isGpsError && selectedRow.isGpsError != 2" class="red">
														<span *ngIf="selectedRow.isGpsError == 1 && btnNum != 'abnormal'" class="red">GPS异常</span>
														<span *ngIf="selectedRow.isGpsError == 3 && btnNum != 'abnormal'" class="red">无GPS</span>
														<span *ngIf="selectedRow.isGpsError == 4 && btnNum != 'abnormal'" class="red">停车速度平直</span>
														<span *ngIf="selectedRow.isGpsError == 5 && btnNum != 'abnormal'" class="red">大段丢失</span>
														<span *ngIf="selectedRow.isGpsError == 6 && btnNum != 'abnormal'" class="red">偶尔丢失</span>
														<span *ngIf="selectedRow.checkStatus == 2" class="red" title="未清零 [进厂]">-未清零 [进厂]</span>
														<span *ngIf="selectedRow.checkStatus == 3" class="red" title="未识别上货 [离厂]">-未识别上货 [离厂]</span>
														<span *ngIf="selectedRow.checkStatus == 4" class="red" title="重量突增 [在途]">-重量突增 [在途]</span>
														<span *ngIf="selectedRow.checkStatus == 5" class="red" title="卸货未清零">-卸货未清零</span>
														<span *ngIf="selectedRow.checkStatus == 6" class="red" title="设备离线">-设备离线</span>
														<span *ngIf="selectedRow.checkStatus == 7" class="red" title="平台问题">-平台问题</span>
														<span *ngIf="selectedRow.checkStatus == 8" class="red" title="垂直卸货">-垂直卸货</span>
														<span *ngIf="selectedRow.checkStatus == 9" class="red" title="磅单问题">-磅单问题</span>
														<span *ngIf="selectedRow.checkStatus == 10" class="red" title="异常订单">-异常订单</span>
														<span *ngIf="selectedRow.checkStatus == 11" class="red" title="卸货有速度">-卸货有速度</span>
													</span>
													<span *ngIf="btnNum == 'abnormal'" class="red">异常卸货</span>
													<span *ngIf="btnNum != 'abnormal' && btnNum != 'dataErrorSensorNormal' && btnNum != 'dataErrorSensorAbnormal' && (!selectedRow.isGpsError || selectedRow.isGpsError == 2 ) && selectedRow.checkStatus == 2" class="red">未清零 [进厂]</span>
													<span *ngIf="btnNum != 'abnormal' && btnNum != 'dataErrorSensorNormal' && btnNum != 'dataErrorSensorAbnormal' && (!selectedRow.isGpsError || selectedRow.isGpsError == 2 ) && selectedRow.checkStatus == 3" class="red">未识别上货 [离厂]</span>
													<span *ngIf="btnNum != 'abnormal' && btnNum != 'dataErrorSensorNormal' && btnNum != 'dataErrorSensorAbnormal' && (!selectedRow.isGpsError || selectedRow.isGpsError == 2 ) && selectedRow.checkStatus == 4" class="red">重量突增 [在途]</span>
													<span *ngIf="btnNum != 'abnormal' && btnNum != 'dataErrorSensorNormal' && btnNum != 'dataErrorSensorAbnormal' && (!selectedRow.isGpsError || selectedRow.isGpsError == 2 ) && selectedRow.checkStatus == 5" class="red">卸货未清零</span>
													<span *ngIf="btnNum != 'abnormal' && btnNum != 'dataErrorSensorNormal' && btnNum != 'dataErrorSensorAbnormal' && (!selectedRow.isGpsError || selectedRow.isGpsError == 2 ) && selectedRow.checkStatus == 6" class="red">设备离线</span>
													<span *ngIf="btnNum != 'abnormal' && btnNum != 'dataErrorSensorNormal' && btnNum != 'dataErrorSensorAbnormal' && (!selectedRow.isGpsError || selectedRow.isGpsError == 2 ) && selectedRow.checkStatus == 7" class="red">平台问题</span>
													<span *ngIf="btnNum != 'abnormal' && btnNum != 'dataErrorSensorNormal' && btnNum != 'dataErrorSensorAbnormal' && (!selectedRow.isGpsError || selectedRow.isGpsError == 2 ) && selectedRow.checkStatus == 8" class="red">垂直卸货</span>
													<span *ngIf="btnNum != 'abnormal' && btnNum != 'dataErrorSensorNormal' && btnNum != 'dataErrorSensorAbnormal' && (!selectedRow.isGpsError || selectedRow.isGpsError == 2 ) && selectedRow.checkStatus == 9" class="red">磅单问题</span>
													<span *ngIf="btnNum != 'abnormal' && btnNum != 'dataErrorSensorNormal' && btnNum != 'dataErrorSensorAbnormal' && (!selectedRow.isGpsError || selectedRow.isGpsError == 2 ) && selectedRow.checkStatus == 10" class="red">异常订单</span>
													<span *ngIf="btnNum != 'abnormal' && btnNum != 'dataErrorSensorNormal' && btnNum != 'dataErrorSensorAbnormal' && (!selectedRow.isGpsError || selectedRow.isGpsError == 2 ) && selectedRow.checkStatus == 11" class="red">卸货有速度</span>


													<span *ngIf="(btnNum == 'dataErrorSensorNormal' || btnNum == 'dataErrorSensorAbnormal') && selectedRow.checkStatus == 2" class="red">未清零 [进厂]</span>
                                                    <span *ngIf="(btnNum == 'dataErrorSensorNormal' || btnNum == 'dataErrorSensorAbnormal') && selectedRow.checkStatus == 3" class="red">未识别上货 [离厂]</span>
                                                    <span *ngIf="(btnNum == 'dataErrorSensorNormal' || btnNum == 'dataErrorSensorAbnormal') && selectedRow.checkStatus == 4" class="red">重量突增 [在途]</span>
                                                    <span *ngIf="(btnNum == 'dataErrorSensorNormal' || btnNum == 'dataErrorSensorAbnormal') && selectedRow.checkStatus == 5" class="red">卸货未清零</span>
                                                    <span *ngIf="(btnNum == 'dataErrorSensorNormal' || btnNum == 'dataErrorSensorAbnormal') && selectedRow.checkStatus == 6" class="red">设备离线</span>
                                                    <span *ngIf="(btnNum == 'dataErrorSensorNormal' || btnNum == 'dataErrorSensorAbnormal') && selectedRow.checkStatus == 7" class="red">平台问题</span>
                                                    <span *ngIf="(btnNum == 'dataErrorSensorNormal' || btnNum == 'dataErrorSensorAbnormal') && selectedRow.checkStatus == 8" class="red">垂直卸货</span>
                                                    <span *ngIf="(btnNum == 'dataErrorSensorNormal' || btnNum == 'dataErrorSensorAbnormal') && selectedRow.checkStatus == 9" class="red">磅单问题</span>
                                                    <span *ngIf="(btnNum == 'dataErrorSensorNormal' || btnNum == 'dataErrorSensorAbnormal') && selectedRow.checkStatus == 10" class="red">异常订单</span>
                                                    <span *ngIf="(btnNum == 'dataErrorSensorNormal' || btnNum == 'dataErrorSensorAbnormal') && selectedRow.checkStatus == 11" class="red">卸货有速度</span>


												</span></div>
												<div class="item-box self-xs-20 no-padding"><span class="item-key">磅单重量[吨]</span><span class="item-value" [attr.title]="">{{selectedRow.sendWeight}}</span></div>
												<div class="item-box self-xs-20 no-padding"><span class="item-key">载重更新</span><span class="item-value" [attr.title]="">{{versionMessage.carUploadDate}}</span></div>
												<div class="item-box self-xs-20 no-padding">
													<span class="item-key">传感器</span><span class="item-value" [attr.title]="">
														<span *ngIf="deviceBaseInfo.sensorType =='1'">应变计</span><span *ngIf="deviceBaseInfo.sensorType =='2'">17-4</span><span *ngIf="!deviceBaseInfo.sensorType">--</span>
													</span>
												</div>
												<div class="item-box self-xs-20 no-padding"><span class="item-key">传感器通道</span><span class="item-value table_scroll" [attr.title]="deviceBaseInfo.sensorChannel">
													<span  class="channel-style bg-green" [ngClass]="{'bg-normal':!item.flag}" *ngFor="let item of deviceBaseInfo.sensorChannelT">{{item.value}}</span>
													<span *ngIf="deviceBaseInfo.sensorChannel.length == 0">--</span>
												</span></div>
												<div class="item-box self-xs-20 no-padding"><span class="item-key">处理状态</span><span class="item-value" [attr.title]="">
													<span *ngIf="selectedRow.detailStatus === 0" class="orange">待处理</span>
										    		<span *ngIf="selectedRow.detailStatus === 1" class="green">人工处理</span>
										    		<span *ngIf="selectedRow.detailStatus === 2" class="green">算法处理</span>
										    		<span *ngIf="selectedRow.detailStatus === 3" class="green">无异常</span>
												</span></div>
												<div class="item-box self-xs-20 no-padding"><span class="item-key">车辆状态</span><span class="item-value" [attr.title]="">
													<span class="red" *ngIf="versionMessage.runStatus=='0'">离线</span><span class="green" *ngIf="versionMessage.runStatus!=='0'">在线</span><span class="red" *ngIf="versionMessage.isShowGPS">[GPS更新异常]</span>
												</span></div>
												<div class="item-box self-xs-20 no-padding"><span class="item-key">GPS更新</span><span class="item-value" [attr.title]="">{{versionMessage.gpsUploadDate}}</span></div>
												<div class="item-box self-xs-20 no-padding" style="width: 40%;">
													<span class="item-key">算法版本</span>
													<span class="item-value" [attr.title]="versionMessage.name" style="max-width:100%">{{versionMessage.name}}</span>
												</div>
												<div class="item-box self-xs-20 no-padding" ><span class="item-key">维修人</span><span class="item-value" [attr.title]="">{{selectedRow.repairedUser||'--'}}</span></div>
												<div class="item-box self-xs-20 no-padding">
													<span class="item-key">维修记录</span>
													<span class="item-value" [attr.title]="selectedRow.repairedRecords && selectedRow.repairedRecords" style="max-width:calc(100% - 84px)">
														<span *ngIf='selectedRow.repairedRecords && selectedRow.repairedRecords.length >0'>
															<span *ngFor="let lis of selectedRow.repairedRecords">
																<span style="font-weight: bold;">{{lis}}:</span>
															</span>
														</span>
														<span *ngIf='selectedRow.repairedRecords == null || selectedRow.repairedRecords == undefined || selectedRow.repairedRecords.length == 0'>--</span>
													</span>
												</div>
												<div class="item-box self-xs-20 no-padding"><span class="item-key">最近维修</span><span class="item-value" [attr.title]="">{{selectedRow.lastServiceTime||'--'}}</span></div>
												<div class="item-box self-xs-20 no-padding" style="width: 40%;">
													<span class="item-key">当前系数</span>
													<span class="item-value" [attr.title]="deviceBaseInfo.coef" style="max-width:calc(100% - 12px)">
														<span *ngIf='deviceBaseInfo.coefT.length >0'>
															<span>[</span><span *ngFor="let lis of deviceBaseInfo.coefT;let i = index;">
																<span style="font-weight: bold;">CH{{lis.index}}:</span><span>{{lis.value}}<span *ngIf="i < deviceBaseInfo.coefT.length-1">,</span></span>
															</span><span>]</span>
														</span>
														<span *ngIf='deviceBaseInfo.coefT.length == 0'>--</span>
													</span>
												</div>
											</div>-->

                      <!--<div class="device-module clearfix fix-device-module" *ngIf='selectedRow'>
												<div class="item-box col-xs-12 no-padding red" *ngIf="selectedRow.remark"><span class="item-key">备注: </span><span class="item-value" [attr.title]="">{{selectedRow.remark}}</span></div>
											</div>-->
                      <div id="popContent" style="position: relative">
                        <div class="chartBox" style="padding-bottom: 12px" [ngClass]="{ calcWidth: isShowQuestion }">
                          <div class="echart-option">
                            <div class="diy_check inline_block">
                              <span class="diy_check_title">AD信号</span>
                              <input
                                name="adSignal"
                                type="checkbox"
                                id="adSignal"
                                class="diy_check_input adSignal"
                                [(ngModel)]="lookSignal"
                                (change)="signalChange()"
                              />
                              <label for="adSignal" class="diy_check_label"></label>
                            </div>
                            <div class="diy_check inline_block">
                              <span class="diy_check_title">api修正</span>
                              <input
                                name="voltage"
                                type="checkbox"
                                id="voltage"
                                class="diy_check_input voltage"
                                [(ngModel)]="showApi"
                                (change)="showApiChange()"
                              />
                              <label for="voltage" class="diy_check_label"></label>
                            </div>
                            <div class="diy_check inline_block">
                              <span class="diy_check_title">地磅数据</span>
                              <input
                                name="loadometer"
                                type="checkbox"
                                id="loadometer"
                                class="diy_check_input loadometer"
                                [(ngModel)]="loadometer"
                                (change)="loadometerChange()"
                              />
                              <label for="loadometer" class="diy_check_label"></label>
                            </div>
                            <div class="diy_check inline_block">
                              <span class="diy_check_title">车辆速度</span>
                              <input
                                name="carSpeed"
                                type="checkbox"
                                class="diy_check_input carSpeed"
                                id="carSpeed"
                                [(ngModel)]="carSpeed"
                                (change)="carSpeedChange()"
                              />
                              <label for="carSpeed" class="diy_check_label"></label>
                            </div>

                            <div class="diy_check inline_block">
                              <span class="diy_check_title">修正数据</span>
                              <input
                                name="showModify"
                                type="checkbox"
                                class="diy_check_input"
                                id="showModify"
                                [(ngModel)]="showModify"
                                (change)="modifyChange()"
                              />
                              <label for="showModify" class="diy_check_label"></label>
                            </div>
                            <div class="diy_check inline_block">
                              <span class="diy_check_title">地图联动</span>
                              <input
                                name="isShowMap"
                                type="checkbox"
                                class="diy_check_input"
                                id="isShowMap"
                                [(ngModel)]="isShowMap"
                                (change)="IsShowMap()"
                              />
                              <label for="isShowMap" class="diy_check_label"></label>
                            </div>
                            <div class="diy_check inline_block">
                              <span class="diy_check_title">围栏阴影</span>
                              <input
                                name="isShowRailChart"
                                type="checkbox"
                                class="diy_check_input"
                                id="isShowRailChart"
                                [(ngModel)]="isShowRailChart"
                                (change)="isShowRailChartChange()"
                              />
                              <label for="isShowRailChart" class="diy_check_label"></label>
                            </div>
                            <div class="diy_check inline_block">
                              <span class="diy_check_title">问题提交</span>
                              <input
                                name="isShowQuestion"
                                type="checkbox"
                                class="diy_check_input"
                                id="isShowQuestion"
                                [(ngModel)]="isShowQuestion"
                                (change)="IsShowQuestion()"
                              />
                              <label for="isShowQuestion" class="diy_check_label"></label>
                            </div>
                          </div>
                          <div class="echart-map-box">
                            <div style="margin-top: 30px; position: relative" class="inline_block" id="echartBox">
                              <div class="promptBox weightPromptBox">
                                <ul>
                                  <li class="promptTitle">地磅数据信息</li>
                                  <li>
                                    <span class="weightDisc">●</span>
                                    地磅重量：{{ poundWeight }}
                                  </li>
                                  <li>● 误差值：{{ errorValue }}</li>
                                  <li>● 误差率：{{ errorRate }}</li>
                                  <li *ngIf="isRate16">● 16通道信号值：{{ ad16Value }}</li>
                                  <li *ngIf="isRate16">● 16通道误差率：{{ ad16Rate }}</li>
                                </ul>
                              </div>
                              <div class="promptBox alertPromptBox">
                                <ul>
                                  <li class="promptTitle">{{ alertChartModelInfo.name }}</li>
                                  <!--<li> ● 异常类型：{{alertChartModelInfo.name}}</li>-->
                                  <li>● 开始时间：{{ alertChartModelInfo.offTime }}</li>
                                  <li>● 结束时间：{{ alertChartModelInfo.onTime }}</li>
                                  <li>● 异常时长：{{ alertChartModelInfo.rangeTime }}</li>
                                  <li>● 发生地址：{{ alertChartModelInfo.address }}</li>
                                </ul>
                              </div>
                              <div class="promptBox versionChartModuleBox">
                                <ul>
                                  <li class="promptTitle">固件升级</li>
                                  <li>● 前版本：{{ versionChartModuleInfo.prevVersion }}</li>
                                  <li>● 升级版本：{{ versionChartModuleInfo.version }}</li>
                                  <li>● 升级时间：{{ versionChartModuleInfo.createTime }}</li>
                                  <!--<li> ● 操作人：{{versionChartModuleInfo.userName}}</li>-->
                                </ul>
                              </div>
                              <div class="promptBox coefChartModuleBox">
                                <ul>
                                  <li class="promptTitle">系数设置</li>
                                  <li>
                                    ● 旧系数：
                                    <span
                                      *ngFor="let item of coefChartModuleInfo.oldCoef; let index = index"
                                      [style.display]="item ? 'inline-block' : 'none'"
                                    >
                                      <span>CH{{ index + 1 }}:{{ item }};</span>
                                    </span>
                                  </li>
                                  <li>
                                    ● 新系数：
                                    <span
                                      *ngFor="let item of coefChartModuleInfo.newCoef; let index = index"
                                      [style.display]="item ? 'inline-block' : 'none'"
                                    >
                                      <span>CH{{ index + 1 }}:{{ item }};</span>
                                    </span>
                                  </li>
                                  <li>● 设置时间：{{ coefChartModuleInfo.sendTime }}</li>
                                  <li>● 操作人：{{ coefChartModuleInfo.userName }}</li>
                                </ul>
                              </div>
                              <div class="chartEmpty">{{ processInfo }}</div>
                              <div id="chart" style="height: 360px"></div>
                            </div>
                            <div
                              class="inline_block"
                              style="position: absolute; right: 0; bottom: 0; width: 0"
                              id="allmapBox"
                            >
                              <div id="allmap" style="height: 360px; width: 100%"></div>

                              <div class="v-player-icons" (click)="IsShowMap()">
                                <i class="fa fa-angle-left v-icon" [ngClass]="{ none: vIcon == '0' }"></i>
                                <i class="fa fa-angle-right v-icon" [ngClass]="{ none: vIcon == '1' }"></i>
                              </div>
                            </div>
                          </div>
                        </div>
                        <div class="mapBox clearfix" [ngClass]="{ calcWidthT: isShowQuestion }">
                          <!-- 新增功能区 start -->
                          <div class="form-horizontal">
                            <div class="problems row">
                              <div class="clearfix" *ngIf="sensorChannel">
                                <div class="form-group sensorCH col-xs-12">
                                  <label class="control-label col-sm-1 no-padding-right">传感器</label>
                                  <div class="col-sm-10">
                                    <div style="border: 1px solid #ccc; padding-bottom: 8px; padding-left: 12px">
                                      <div>
                                        <label class="checkbox-inline" *ngFor="let item of sensorArr">
                                          <input
                                            type="checkbox"
                                            class="checkbox style-0"
                                            [value]="item.id"
                                            [name]="item.text"
                                            [(ngModel)]="item.checked"
                                            (change)="sensorChange(item.id, $event)"
                                          />
                                          <span>{{ item.text }}</span>
                                        </label>
                                      </div>
                                    </div>
                                  </div>
                                </div>
                                <div class="form-group col-xs-12 col-sm-4">
                                  <label class="control-label col-sm-3">开始时间</label>
                                  <div class="col-sm-9">
                                    <div class="clearfix">
                                      <input
                                        type="text"
                                        autocomplete="off"
                                        name="startTime_sensor"
                                        (click)="inpSelectEvent('startTime_sensor')"
                                        class="form-control getChartTime bottomborder"
                                        [(ngModel)]="startTime_sensor"
                                        placeholder="时间格式：yyyy-MM-dd HH:mm:ss"
                                        [ngClass]="{ endueTime: inpSelect == 'startTime_sensor' }"
                                      />
                                    </div>
                                  </div>
                                </div>

                                <div class="form-group col-xs-12 col-sm-4">
                                  <label class="control-label col-sm-3">结束时间</label>
                                  <div class="col-sm-9">
                                    <div class="clearfix">
                                      <input
                                        type="text"
                                        autocomplete="off"
                                        name="endTime_sensor"
                                        (click)="inpSelectEvent('endTime_sensor')"
                                        class="form-control getChartTime bottomborder"
                                        [(ngModel)]="endTime_sensor"
                                        placeholder="时间格式：yyyy-MM-dd HH:mm:ss"
                                        [ngClass]="{ endueTime: inpSelect == 'endTime_sensor' }"
                                      />
                                    </div>
                                  </div>
                                </div>
                                <button class="btn btn-primary" (click)="submitSensor()">提交</button>
                              </div>
                              <div class="form-group col-xs-12 col-sm-4">
                                <label class="control-label col-sm-3 no-padding-right" for="zeroBeforeDate">
                                  上货前置零
                                </label>
                                <div class="col-sm-9">
                                  <div class="clearfix">
                                    <input
                                      type="text"
                                      autocomplete="off"
                                      name="zeroBeforeDate"
                                      id="zeroBeforeDate"
                                      class="form-control getChartTime"
                                      [(ngModel)]="zeroBeforeDate"
                                      (click)="inpSelectEvent('zeroBeforeDate')"
                                      [ngClass]="{ endueTime: inpSelect == 'zeroBeforeDate' }"
                                      placeholder="上货前置零起始时间（时间格式：yyyy-MM-dd HH:mm:ss）"
                                    />
                                  </div>
                                </div>
                              </div>
                              <div class="form-group col-xs-12 col-sm-4">
                                <label class="control-label col-sm-3 no-padding-right" for="upStartDate">
                                  上货开始
                                </label>
                                <div class="col-sm-9">
                                  <div class="clearfix">
                                    <input
                                      type="text"
                                      autocomplete="off"
                                      id="upStartDate"
                                      class="form-control getChartTime"
                                      name="upStartDate"
                                      [(ngModel)]="upStartDate"
                                      (click)="inpSelectEvent('upStartDate')"
                                      [ngClass]="{ endueTime: inpSelect == 'upStartDate' }"
                                      placeholder="上货点起始时间（时间格式：yyyy-MM-dd HH:mm:ss）"
                                    />
                                  </div>
                                </div>
                              </div>
                              <div class="form-group col-xs-12 col-sm-4">
                                <label class="control-label col-sm-3 no-padding-right" for="upEndDate">上货结束</label>
                                <div class="col-sm-9">
                                  <div class="clearfix">
                                    <input
                                      type="text"
                                      autocomplete="off"
                                      class="form-control getChartTime"
                                      name="upEndDate"
                                      id="upEndDate"
                                      [(ngModel)]="upEndDate"
                                      (click)="inpSelectEvent('upEndDate')"
                                      [ngClass]="{ endueTime: inpSelect == 'upEndDate' }"
                                      placeholder="上货点结束时间（时间格式：yyyy-MM-dd HH:mm:ss）"
                                    />
                                  </div>
                                </div>
                              </div>
                              <div class="form-group col-xs-12 col-sm-4">
                                <label class="control-label col-sm-3 no-padding-right" for="downStartDate">
                                  卸货开始
                                </label>
                                <div class="col-sm-9">
                                  <div class="clearfix">
                                    <input
                                      autocomplete="off"
                                      class="form-control getChartTime"
                                      name="downStartDate"
                                      id="downStartDate"
                                      type="text"
                                      [(ngModel)]="downStartDate"
                                      (click)="inpSelectEvent('downStartDate')"
                                      [ngClass]="{ endueTime: inpSelect == 'downStartDate' }"
                                      placeholder="卸货点起始时间（时间格式：yyyy-MM-dd HH:mm:ss）"
                                    />
                                  </div>
                                </div>
                              </div>
                              <div class="form-group col-xs-12 col-sm-4">
                                <label class="control-label col-sm-3 no-padding-right" for="downEndDate">
                                  卸货结束
                                </label>
                                <div class="col-sm-9">
                                  <div class="clearfix">
                                    <input
                                      autocomplete="off"
                                      class="form-control getChartTime"
                                      name="downEndDate"
                                      id="downEndDate"
                                      type="text"
                                      [(ngModel)]="downEndDate"
                                      (click)="inpSelectEvent('downEndDate')"
                                      [ngClass]="{ endueTime: inpSelect == 'downEndDate' }"
                                      placeholder="卸货点结束时间（时间格式：yyyy-MM-dd HH:mm:ss）"
                                    />
                                  </div>
                                </div>
                              </div>
                              <div class="form-group col-xs-12 col-sm-4">
                                <label class="control-label col-sm-3 no-padding-right" for="zeroAfterDate">
                                  卸货后置零
                                </label>
                                <div class="col-sm-9">
                                  <div class="clearfix">
                                    <input
                                      autocomplete="off"
                                      class="form-control getChartTime"
                                      name="zeroAfterDate"
                                      id="zeroAfterDate"
                                      type="text"
                                      [(ngModel)]="zeroAfterDate"
                                      (click)="inpSelectEvent('zeroAfterDate')"
                                      [ngClass]="{ endueTime: inpSelect == 'zeroAfterDate' }"
                                      placeholder="卸货后置零结束时间（时间格式：yyyy-MM-dd HH:mm:ss）"
                                    />
                                  </div>
                                </div>
                              </div>
                              <div class="form-group col-xs-12 col-sm-4">
                                <label class="control-label col-sm-3 no-padding-right" for="startWeight">
                                  上货前重量
                                </label>
                                <div class="col-sm-9">
                                  <div class="clearfix">
                                    <input
                                      class="form-control"
                                      autocomplete="off"
                                      name="startWeight"
                                      id="startWeight"
                                      type="text"
                                      value="0.0"
                                    />
                                  </div>
                                </div>
                              </div>
                              <div class="form-group col-xs-12 col-sm-4">
                                <label class="control-label col-sm-3 no-padding-right" for="weight">重量</label>
                                <div class="col-sm-9">
                                  <div class="clearfix">
                                    <input
                                      autocomplete="off"
                                      class="form-control"
                                      name="weight"
                                      id="weight"
                                      type="text"
                                      placeholder="重量数据（如：30.25）"
                                    />
                                  </div>
                                </div>
                              </div>
                              <div class="form-group col-xs-12 col-sm-4">
                                <label class="control-label col-sm-3 no-padding-right" for="endWeight">
                                  卸货后重量
                                </label>
                                <div class="col-sm-9">
                                  <div class="clearfix">
                                    <input
                                      autocomplete="off"
                                      class="form-control"
                                      name="endWeight"
                                      id="endWeight"
                                      type="text"
                                      value="0.0"
                                    />
                                  </div>
                                </div>
                              </div>
                              <div class="form-group col-xs-12 col-sm-4">
                                <label class="control-label col-sm-3" for="isWave">数据波动</label>
                                <div class="col-sm-9 clearfix" style="line-height: 32px">
                                  <div class="">
                                    <label style="margin-bottom: 0">
                                      <input id="isWave" name="isWave" class="checkbox style-0" type="checkbox" />
                                      <span class="lbl">1吨内</span>
                                    </label>
                                    <label style="margin-bottom: 0">
                                      <span class="lbl">波动范围</span>
                                      <select
                                        [(ngModel)]="waveWeight"
                                        name="waveWeight"
                                        id="waveWeight"
                                        style="width: 80px; padding-left: 24px"
                                      >
                                        <option value="0.1">0.1</option>
                                        <option value="0.2">0.2</option>
                                        <option value="0.3">0.3</option>
                                        <option value="0.4">0.4</option>
                                        <option value="0.5">0.5</option>
                                        <option value="0.6">0.6</option>
                                        <option value="0.7">0.7</option>
                                        <option value="0.8">0.8</option>
                                        <option value="0.9">0.9</option>
                                        <option value="1.0">1.0</option>
                                      </select>
                                    </label>
                                  </div>
                                </div>
                              </div>

                              <div class="form-group col-xs-12 col-sm-8">
                                <label class="control-label col-sm-3" for="isDiagonal">上卸货曲线</label>
                                <div class="col-sm-4 clearfix" style="line-height: 28px; padding-left: 0">
                                  <div class="">
                                    <label style="margin-bottom: 0">
                                      <input
                                        id="isDiagonal"
                                        name="isDiagonal"
                                        class="checkbox style-0"
                                        type="checkbox"
                                      />
                                      <span class="lbl">斜线(默认是sin曲线)</span>
                                    </label>
                                  </div>
                                </div>
                                <div class="col-sm-4 clearfix" style="line-height: 28px" *ngIf="orderStatusUpdate">
                                  <div class="">
                                    <label style="margin-bottom: 0">
                                      <input
                                        id="changeStatus"
                                        name="changeStatus"
                                        class="checkbox style-0"
                                        type="checkbox"
                                      />
                                      <span class="lbl">更新订单状态</span>
                                    </label>
                                  </div>
                                </div>
                              </div>
                            </div>
                            <div class="hr hr-dotted"></div>
                          </div>
                          <!-- 新增功能区 end -->
                        </div>

                        <div
                          style="
                            position: absolute;
                            right: 0;
                            top: 0;
                            border: 1px solid #ccc;
                            border-radius: 4px;
                            padding: 10px;
                            height: 540px;
                            overflow: auto;
                          "
                          id="questionSortModuleBox"
                        >
                          <div class="questionSortModule">
                            <!-- <div class="selectDate top_module" style="margin-top: 8px"> -->
                              <!-- <span class="inline_block" style="height: 32px; line-height: 32px; vertical-align: top">
                                问题区间
                              </span>
                              <div class="input-daterange input-group s_selected_time_box s_hover_box">
                                <input
                                  type="text"
                                  autocomplete="off"
                                  name="startTime_problem"
                                  id="startTime_problem"
                                  (click)="inpSelectEvent('startTime_problem')"
                                  class="form-control getChartTime bottomborder inline_block"
                                  [(ngModel)]="startTime_problem"
                                  placeholder="时间格式：yyyy-MM-dd HH:mm:ss"
                                  [ngClass]="{ endueTime: inpSelect == 'startTime_problem' }"
                                  style="width: 146px; height: 28px; border: none; float: none; vertical-align: top"
                                />
                                <span class="s_selected_time_spe">至</span>
                                <input
                                  type="text"
                                  autocomplete="off"
                                  name="endTime_problem"
                                  id="endTime_problem"
                                  (click)="inpSelectEvent('endTime_problem')"
                                  class="form-control getChartTime bottomborder inline_block"
                                  [(ngModel)]="endTime_problem"
                                  placeholder="时间格式：yyyy-MM-dd HH:mm:ss"
                                  [ngClass]="{ endueTime: inpSelect == 'endTime_problem' }"
                                  style="width: 146px; height: 28px; border: none; float: none; vertical-align: top"
                                />
                              </div>
                            </div> -->
                            <!--<div class="borderdiv"></div>-->
                            <div class="form-group sensorModuleBox">
                              <div style="margin-top: 4px">
                                <div class="inline_block" (click)="sensorSelectAllClick()" style="margin-left: 10px">
                                  <span
                                    class="el-checkbox__inner"
                                    [ngClass]="{ 'is-checked': sensorSelectAll.selected }"
                                  ></span>
                                  <span style="font-weight: bold">{{ sensorSelectAll.text }}</span>
                                </div>

                                <button
                                  type="button"
                                  class="btn btn-primary"
                                  title="传感器问题、GPS问题更新至车辆管理"
                                  (click)="updataDeviceStatus()"
                                  style="float: right; margin-top: -6px"
                                >
                                  更新设备状态
                                </button>
                                <div
                                  (click)="allSensorKeepValue()"
                                  class="lisItem right"
                                  style="margin-right: 8px; margin-left: 0"
                                >
                                  <span class="el-checkbox__inner" [ngClass]="{ 'is-checked': isAllStraight }"></span>
                                  <span>传感器全部平直</span>
                                </div>

                                <!--<button type="button" class="btn btn-primary" title="传感器全部平直更新至车辆管理" (click)="allSensorKeepValue()" style="float: right;margin-top: -6px;">全部平直</button>-->
                              </div>
                              <div>
                                <div class="clearfix">
                                  <ul>
                                    <li
                                      *ngFor="let item of sensorModuleList"
                                      class="table_scroll"
                                      style="padding-left: 8px; margin-top: 8px"
                                    >
                                      <button
                                        class="btn-link"
                                        title="单个传感器问题提交"
                                        (click)="updateSensorProblem(item)"
                                      >
                                        更新
                                      </button>
                                      <span
                                        class="channel-style bg-green sensorModuleFront"
                                        [ngClass]="{ 'bg-normal': !item.flag }"
                                      >
                                        {{ item.value }}
                                        <i class="channel-style sensorFront front" *ngIf="item.isFront == '1'">前</i>
                                        <i class="channel-style sensorFront bottom" *ngIf="item.isFront == '2'">后</i>
                                      </span>

                                      <div class="inline_block">
                                        <div
                                          *ngFor="let lis of item.child"
                                          (click)="sensorLisSelected(item.value, lis.code)"
                                          class="lisItem"
                                          style="margin-right: 8px; margin-left: 0"
                                        >
                                          <span
                                            class="el-checkbox__inner"
                                            [ngClass]="{ 'is-checked': lis.selected }"
                                          ></span>
                                          <span>{{ lis.text }}</span>
                                        </div>
                                      </div>
                                      <div
                                        style="font-size: 12px"
                                        *ngIf="item.selected && item.startTime && item.endTime"
                                      >
                                        <div class="item-box inline_block">
                                          <span class="item-key"></span>
                                          <span class="item-value" [attr.title]="">{{ item.operator }}</span>
                                        </div>
                                        <div class="item-box inline_block">
                                          <span class="item-key"></span>
                                          <span class="item-value" [attr.title]="">
                                            {{ item.startTime }} 至 {{ item.endTime }}
                                          </span>
                                        </div>
                                        <button
                                          class="btn-link"
                                          title="问题区间曲线、轨迹"
                                          (click)="dataDrawEchartBMap(item)"
                                        >
                                          查看
                                        </button>
                                      </div>
                                    </li>
                                  </ul>
                                </div>
                              </div>
                            </div>
                            <div class="borderdiv"></div>
                            <div class="form-group GPSModuleBox">
                              <div style="margin-bottom: 8px">
                                <div class="inline_block" (click)="GPSSelectAllClick()" style="margin-left: 10px">
                                  <span
                                    class="el-checkbox__inner"
                                    [ngClass]="{ 'is-checked': GPSSelectAll.selected }"
                                  ></span>
                                  <span style="font-weight: bold">{{ GPSSelectAll.text }}</span>
                                </div>
                              </div>
                              <button
                                class="btn-link"
                                title="GPS问题提交"
                                (click)="updateGPSProblem()"
                                style="margin-left: 8px"
                              >
                                更新
                              </button>
                              <div class="inline_block" style="white-space: normal">
                                <div
                                  *ngFor="let lis of GPSModuleList"
                                  (click)="GPSLisSelected(lis.code)"
                                  class="lisItem"
                                  style="margin-bottom: 8px"
                                >
                                  <span class="el-checkbox__inner" [ngClass]="{ 'is-checked': lis.selected }"></span>
                                  <span>{{ lis.text }}</span>
                                </div>
                              </div>
                              <div
                                style="font-size: 12px; margin-left: 8px"
                                *ngIf="GPSProblemList.selected && GPSProblemList.startTime && GPSProblemList.endTime"
                              >
                                <div class="item-box inline_block">
                                  <span class="item-key"></span>
                                  <span class="item-value" [attr.title]="">{{ GPSProblemList.operator }}</span>
                                </div>
                                <div class="item-box inline_block">
                                  <span class="item-key"></span>
                                  <span class="item-value" [attr.title]="">
                                    {{ GPSProblemList.startTime }} 至 {{ GPSProblemList.endTime }}
                                  </span>
                                </div>
                                <button
                                  class="btn-link"
                                  title="问题区间曲线、轨迹"
                                  (click)="dataDrawEchartBMap(GPSProblemList)"
                                >
                                  查看
                                </button>
                              </div>
                            </div>
                            <div class="borderdiv" style="margin-top: 0"></div>
                            <div class="form-group" style="padding: 0 12px">
                              <div style="margin-bottom: 8px">
                                <div class="inline_block" (click)="hostSelectAllClick('click')">
                                  <span class="el-checkbox__inner" [ngClass]="{ 'is-checked': hostAllSelect }"></span>
                                  <span style="font-weight: bold">主机问题</span>
                                </div>
                              </div>

                              <div class="inline_block">
                                <div class="inline_block" (click)="deviceOfflineClick()">
                                  <span
                                    class="el-checkbox__inner"
                                    [ngClass]="{ 'is-checked': deviceOffline.selected }"
                                  ></span>
                                  <span>{{ deviceOffline.text }}</span>
                                </div>
                              </div>
                              <div class="inline_block" style="margin-left: 5px">
                                <div class="inline_block" (click)="deviceContactClick()">
                                  <span
                                    class="el-checkbox__inner"
                                    [ngClass]="{ 'is-checked': deviceContact.selected }"
                                  ></span>
                                  <span>{{ deviceContact.text }}</span>
                                </div>
                              </div>
                              <div class="inline_block" style="margin-left: 5px; margin-bottom: 8px;">
                                <div class="inline_block" (click)="distrustThrowClick()">
                                  <span
                                    class="el-checkbox__inner"
                                    [ngClass]="{ 'is-checked': distrustThrow.selected }"
                                  ></span>
                                  <span>{{ distrustThrow.text }}</span>
                                </div>
                              </div>
                            </div>

                            <div class="borderdiv" style="margin-top: 0"></div>
                            <div class="form-group" style="padding: 0 12px">
                              <div style="margin-bottom: 8px">
                                <div class="inline_block" (click)="otherSelectAllClick('click')">
                                  <span class="el-checkbox__inner" [ngClass]="{ 'is-checked': otherAllSelect }"></span>
                                  <span style="font-weight: bold">其他</span>
                                </div>
                              </div>
                              
                              <div class="inline_block">
                                <div class="inline_block" (click)="deviceOtherClick()">
                                  <span
                                    class="el-checkbox__inner"
                                    [ngClass]="{ 'is-checked': deviceOther.selected }"
                                  ></span>
                                  <span>{{ deviceOther.text }}</span>
                                </div>
                                <input
                                  *ngIf="deviceOther.selected"
                                  placeholder="问题描述(如: 4pin接口, 更换主机)"
                                  style="width: 188px"
                                  [(ngModel)]="hardwareIssueDescription"
                                />
                              </div>

                              <div class="inline_block" style="margin-left: 82px">
                                <div class="inline_block" (click)="deviceRepairedIspushClick()">
                                  <span
                                    class="el-checkbox__inner"
                                    [ngClass]="{ 'is-checked': deviceRepairedIspush.selected }"
                                  ></span>
                                  <span>{{ deviceRepairedIspush.text }}</span>
                                </div>
                              </div>
                            </div>
                            <div class="borderdiv"></div>
                            <div>
                              <button type="button" class="btn btn-primary" (click)="addDeviceRepaired()">
                                添加维修记录
                              </button>
                              <button type="button" class="btn btn-primary" (click)="editDeviceInfo(editDeciceModal)">
                                编辑设备信息
                              </button>
                              <button
                                type="button"
                                class="btn btn-primary"
                                (click)="makerGPS()"
                                style="margin-right: 0"
                              >
                                标记GPS问题
                              </button>
                            </div>
                            <div class="borderdiv" style="margin-bottom: 0"></div>
                            <div style="position: relative">
                              <div class="form-group">
                                <div style="font-weight: bold; padding: 6px 10px">Matlab算法问题</div>
                                <div style="font-weight: bold; padding: 6px 10px; position: absolute; top: 59px">
                                  平台问题
                                </div>
                                <div class="">
                                  <div
                                    *ngFor="let lis of algorithmQuestionList"
                                    class="lisItem"
                                    [ngStyle]="{
                                      margin:
                                        lis.exceptionType == 1
                                          ? '0 0 40px 10px'
                                          : lis.exceptionType == 7 && lis.programType != 704
                                          ? '0 0 10px 10px'
                                          : '15px 0 15px 10px',
                                      clear: lis.programType == '502' ? 'left' : 'none'
                                    }"
                                    style="min-width: 88px; float: left"
                                  >
                                    <div
                                      style="display: inline-block"
                                      (click)="algorithmLisSelected(lis.text)"
                                      [ngStyle]="{ margin: lis.programType == 700 ? '5px 0' : '' }"
                                    >
                                      <span
                                        class="el-checkbox__inner"
                                        [ngClass]="{ 'is-checked': lis.selected }"
                                      ></span>
                                      <span>{{ lis.text }}</span>
                                    </div>
                                    <div *ngIf="lis.programType == 700 && lis.selected" style="display: inline-block">
                                      <input
                                        placeholder="问题描述(如: 4pin接口, 更换主机)"
                                        style="width: 188px"
                                        [(ngModel)]="platformIssueDescription"
                                      />
                                    </div>
                                  </div>
                                </div>
                              </div>
                              <div class="borderdiv" style="position: absolute; top: 22%; width: 100%"></div>
                              <div class="borderdiv" style="position: absolute; bottom: 26%; width: 100%"></div>
                              <div class="borderdiv" style="margin: 0; position: relative; top: -9px"></div>
                              <button type="button" class="btn btn-primary" (click)="updataOrderStatus()">
                                更新订单状态
                              </button>
                            </div>
                          </div>
                        </div>
                      </div>
                      <div class="center" style="font-size: 0; white-space: nowrap">
                        <button type="button" class="btn btn-primary" (click)="GPSDealWith()">GPS已处理</button>
                        <button
                          type="button"
                          class="btn btn-sm btn-danger"
                          (click)="cancelDeviceIspush()"
                          *ngIf="deviceRepairedIspushFlag"
                        >
                          取消进厂限制
                        </button>
                        <button
                          type="button"
                          class="btn btn-primary btn-sm"
                          (click)="waitDealWith()"
                          *ngIf="selectedRow && selectedRow.isWaitDetail == 0"
                        >
                          加入待处理队列
                        </button>
                        <button
                          type="button"
                          class="btn btn-primary btn-sm btn-orange"
                          (click)="waitDealWith()"
                          *ngIf="selectedRow && selectedRow.isWaitDetail == 1"
                        >
                          取消待处理队列
                        </button>
                        <button type="button" (click)="openConfigView(positionModal)" class="btn btn-primary btn-sm">
                          系数设置
                        </button>
                        <button
                          type="button"
                          (click)="resetWeightToZero()"
                          class="btn btn-primary btn-sm"
                          style="min-width: 60px"
                        >
                          清零
                        </button>
                        <button type="button" class="btn btn-primary btn-sm" (click)="reserveOrder()">刷新订单</button>
                        <button type="button" class="btn btn-primary btn-sm" (click)="runMatlab()">手动执行算法</button>
                        <button id="btnAdd" type="button" (click)="makeData()" class="btn btn-success btn-sm">
                          <i class="fa fa-refresh"></i>
                          &nbsp; 优化
                        </button>
                        <!--<button *ngIf='isDisable' id="btnAdd" type="button" (click)="makeData()" class="btn btn-success btn-sm" disabled="disabled">
													<i class="fa fa-refresh"></i>&nbsp;
													优化
												</button>-->
                        <button id="btnAdd" type="button" (click)="recall()" class="btn btn-danger btn-sm">
                          <i class="fa fa-trash-o"></i>
                          &nbsp; 撤回
                        </button>
                        <button type="button" class="btn btn-primary btn-sm" (click)="dealOrderAlgorithm('2')">
                          算法已处理
                        </button>
                        <button type="button" class="btn btn-primary btn-sm" (click)="dealOrderAlgorithm('3')">
                          订单无异常
                        </button>
                        <button type="button" class="btn btn-primary btn-sm" (click)="repair()">被投诉</button>
                        <!--<button type="button" (click)="submitRecord()" class="btn btn-primary btn-sm">
													<i class="fa fa-question-circle"></i>&nbsp;
													问题记录
												</button>
												<button type="button" *ngIf="proTypeParams.problemType=='1'" (click)="submitDevice()" class="btn btn-primary btn-sm">
													<i class="fa fa-square-o"></i>&nbsp;
													设备故障
												</button>
												<button type="button" class="btn btn-primary btn-sm" (click)="dealWith(dealModal)">处理</button>-->
                        <button
                          type="button"
                          class="btn btn-primary btn-sm"
                          [ngClass]="{ 'btn-grey': selectedRow && selectedRow.isMatlab }"
                          (click)="remarkMatLab()"
                        >
                          <span *ngIf="selectedRow && selectedRow.isMatlab">取消</span>
                          标记Matlab算法
                        </button>
                      </div>
                    </div>
                  </div>
                </div>
                <div id="timeline" class="tab-pane">
                  <div class="clearfix">
                    <div class="device-module clearfix" style="margin-top: 12px" *ngIf="selectedRow">
                      <h4>基本信息</h4>
                      <div class="item-box self-xs-20 no-padding">
                        <span class="item-key">车牌号码</span>
                        <span class="item-value" [attr.title]="">{{ selectedRow.carNumber || '--' }}</span>
                        <span *ngIf="selectedRow.deviceId">[{{ selectedRow.deviceId }}]</span>
                      </div>
                      <div class="item-box self-xs-20 no-padding">
                        <span class="item-key">公司名称</span>
                        <span class="item-value" [attr.title]="">{{ selectedRow.companyName || '--' }}</span>
                      </div>
                      <div class="item-box self-xs-20 no-padding">
                        <span class="item-key">安装时间</span>
                        <span class="item-value" [attr.title]="">{{ deviceBaseInfo.inputDate || '--' }}</span>
                      </div>
                      <div class="item-box self-xs-20 no-padding">
                        <span class="item-key">录入人员</span>
                        <span class="item-value" [attr.title]="">{{ deviceBaseInfo.userNameForCreate || '--' }}</span>
                      </div>
                      <div class="item-box self-xs-20 no-padding">
                        <span class="item-key">已安装[据今]</span>
                        <span class="item-value" [attr.title]="">{{ deviceBaseInfo.installTime || '--' }}</span>
                      </div>
                      <div class="item-box self-xs-20 no-padding">
                        <span class="item-key">车辆用途</span>
                        <span class="item-value" [attr.title]="">{{ deviceBaseInfo.userTypeName || '--' }}</span>
                      </div>
                      <div class="item-box self-xs-20 no-padding">
                        <span class="item-key">载重更新</span>
                        <span class="item-value" [attr.title]="">{{ versionMessage.carUploadDate }}</span>
                      </div>
                      <div class="item-box self-xs-20 no-padding">
                        <span class="item-key">传感器</span>
                        <span class="item-value" [attr.title]="">
                          <sa-sensor-type
                            [sensorTypeId]="deviceBaseInfo.sensorType"
                            [inputParam]="inputParam"
                            type="2"
                            [isSendRequest]="false"
                          ></sa-sensor-type>
                        </span>
                      </div>
                      <div class="item-box self-xs-20 no-padding">
                        <span class="item-key">车辆状态</span>
                        <span class="item-value" [attr.title]="">
                          <span class="red" *ngIf="versionMessage.runStatus == '0'">
                            离线
                            <span *ngIf="versionMessage.alarmType">{{ versionMessage.alarmType }}</span>
                          </span>
                          <span class="green" *ngIf="versionMessage.runStatus !== '0'">在线</span>
                          <span class="red" *ngIf="versionMessage.isShowGPS">[GPS更新异常]</span>
                        </span>
                      </div>
                      <div class="item-box self-xs-20 no-padding">
                        <span class="item-key">GPS更新</span>
                        <span class="item-value" [attr.title]="">{{ versionMessage.gpsUploadDate }}</span>
                      </div>
                      <div class="item-box self-xs-20 no-padding">
                        <span class="item-key">传感器通道</span>
                        <span class="item-value table_scroll" [attr.title]="deviceBaseInfo.sensorChannel">
                          <span
                            class="channel-style bg-green"
                            [ngClass]="{ 'bg-normal': !item.flag }"
                            *ngFor="let item of deviceBaseInfo.sensorChannelT"
                          >
                            {{ item.value }}
                          </span>
                          <span *ngIf="deviceBaseInfo.sensorChannel.length == 0">--</span>
                        </span>
                      </div>
                      <div class="item-box self-xs-20 no-padding" style="width: 40%">
                        <span class="item-key">算法版本</span>
                        <span class="item-value" [attr.title]="versionMessage.name" style="max-width: 100%">
                          {{ versionMessage.name }}
                        </span>
                      </div>
                      <div class="item-box self-xs-20 no-padding" style="width: 40%">
                        <span class="item-key">当前系数</span>
                        <span
                          class="item-value"
                          [attr.title]="deviceBaseInfo.coef"
                          style="max-width: calc(100% - 12px)"
                        >
                          <span *ngIf="deviceBaseInfo.coefT.length > 0">
                            <span>[</span>
                            <span *ngFor="let lis of deviceBaseInfo.coefT; let i = index">
                              <span style="font-weight: bold">CH{{ lis.index }}:</span>
                              <span>
                                {{ lis.value }}
                                <span *ngIf="i < deviceBaseInfo.coefT.length - 1">,</span>
                              </span>
                            </span>
                            <span>]</span>
                          </span>
                          <span *ngIf="deviceBaseInfo.coefT.length == 0">--</span>
                        </span>
                      </div>
                    </div>
                  </div>
                  <div class="device-module clearfix" style="margin-top: 12px" >
                    <h4>
                      主机生命周期
                      <span *ngIf="hostTableData.length" [attr.title]="'当前为' + hostTableData.length + '号主机，已更换' + (hostTableData.length -1) + '次主机'">{{selectedRow.carNumber}}[{{hostTableData.length}}]</span>
                    </h4>
                    <div class="table_scroll first_row_style">
                      <table class="display dataTables responsive table table-striped table-bordered table-hover dataTable s_h5_table" style="margin-bottom: 0 !important;border-bottom: 0 !important;">
                        <thead>
                          <tr>
                            <th class="width100">序号</th>
                            <th class="width100">状态</th>
                            <th class="width120">车牌号码</th>
                            <th class="width120">设备ID</th>
                            <th class="width120">物料名称</th>
                            <th class="width120">产品编号</th>
                            <th class="width120">原设备ID</th>
                            <th class="width150">工作时长</th>
                            <th style="text-align:center">安装时间</th>
                          </tr>
                        </thead>
                      </table>
                    </div>
                    <div [ngClass]="{'host_table': hostTableData.length > 3 }"  class="table_scroll first_row_style">
                      <table class="display dataTables responsive table table-striped table-bordered table-hover dataTable s_h5_table" style="border-top: 0 !important;">
                        <tbody *ngIf="hostTableData.length > 0">
                          <tr *ngFor="let row of hostTableData; let i = index">
                            <td class="width100">{{ row.number }}</td>
                            <td class="width100">
                              <span *ngIf="row.state === 0">拆卸</span>
                              <span *ngIf="row.state === 1">在用</span>
                            </td>
                            <td class="width120">{{ row.carNumber }}</td>
                            <td class="width120">{{ row.deviceId }}</td>
                            <td class="width120">{{ row.materielName }}</td>
                            <td class="width120">{{ row.materielNumber }}</td>
                            <td class="width120">{{ row.lastDeviceId }}</td>
                            <td class="width150">{{ row.workingTimeStr }}</td>
                            <td style="text-align:center">{{ row.installTime }}</td>
                          </tr>
                        </tbody>
                        <tbody *ngIf="hostTableData.length === 0">
                          <div style="text-align: center;height: 50px;line-height: 50px;">暂无数据</div>
                        </tbody>
                      </table>
                    </div>
                  </div>
                  <div class="device-module clearfix" style="margin-top: 12px" >
                    <h4>
                      传感器生命周期
                      <span *ngIf="sensorListData.length" [attr.title]="'当前设备安装' + sensorCount + '个传感器'">{{selectedRow.carNumber}}[{{sensorCount}}]</span>
                    </h4>
                    <div class="table_scroll first_row_style">
                      <table class="display dataTables responsive table table-striped table-bordered table-hover dataTable s_h5_table" style="margin-bottom: 0 !important;border-bottom: 0 !important;">
                        <thead>
                          <tr>
                            <th class="width100">产品编号</th>
                            <th class="width100">序号</th>
                            <th class="width100">状态</th>
                            <th class="width120">车牌号码</th>
                            <th class="width120">设备ID</th>
                            <th class="width200">物料名称</th>
                            <th class="width150">工作时长</th>
                            <th style="text-align:center">安装时间</th>
                          </tr>
                        </thead>
                      </table>
                    </div>
                    <div [ngClass]="{'sensor_table': sensorListData.length > 5 }" class="table_scroll first_row_style" >
                      <table class="display dataTables responsive table table-striped table-bordered table-hover dataTable s_h5_table" style="border-top: 0 !important;">
                        <tbody *ngIf="sensorListData.length > 0">
                          <tr *ngFor="let row of sensorListData; let i = index">
                            <td class="width100" [rowSpan]="row.rowSpan" *ngIf="row.secondIndex == 0">
                              <span class="channel-style bg-green">
                                {{ row.materielNumber }}
                              </span>
                            </td>
                            <td class="width100">{{ row.number }}</td>
                            <td class="width100">
                              <span *ngIf="row.state === 0">拆卸</span>
                              <span *ngIf="row.state === 1">在用</span>
                            </td>
                            <td class="width120">{{ row.carNumber }}</td>
                            <td class="width120">{{ row.deviceId }}</td>
                            <td class="width200">{{ row.materielName }}</td>
                            <td class="width150">{{ row.workingTimeStr }}</td>
                            <td style="text-align:center">{{ row.installTime }}</td>
                          </tr>
                        </tbody>
                        <tbody *ngIf="sensorListData.length === 0">
                          <div style="text-align: center;height: 50px;line-height: 50px;">暂无数据</div>
                        </tbody>
                      </table>
                    </div>
                  </div>
                </div>
                <div id="deviceInfo" class="tab-pane">
                  <sa-device-info
                    [deviceId]="selectRowData.deviceId"
                    [endTime]="endDateBtn"
                    [startTime]="startDateBtn"
                    [renewalInfo]="renewalInfo"
                    [iccid]="deviceBaseInfo.iccid"
                  ></sa-device-info>
                  <!-- <div class="clearfix">
										<div class="device-module clearfix" style="margin-top: 12px;">
											<h4>基本信息</h4>
											<div class="item-box col-xs-4 no-padding"><span class="item-key">公司名称</span><span class="item-value" [attr.title]="">{{deviceBaseInfo.companyName||'--'}}</span></div>
											<div class="item-box col-xs-4 no-padding"><span class="item-key">车辆用途</span><span class="item-value" [attr.title]="">{{deviceBaseInfo.userTypeName||'--'}}</span></div>
											<div class="item-box col-xs-4 no-padding"><span class="item-key">司机姓名</span><span class="item-value" [attr.title]="">{{deviceBaseInfo.driverName||'--'}}</span></div>
											<div class="item-box col-xs-4 no-padding"><span class="item-key">车牌号码</span><span class="item-value" [attr.title]="">{{deviceBaseInfo.carNumber||'--'}}</span></div>
											<div class="item-box col-xs-4 no-padding">
												<span class="item-key">传感器类型</span><span class="item-value" [attr.title]="">
													<sa-sensor-type [sensorTypeId]="deviceBaseInfo.sensorType" [inputParam]="inputParam" type='2' [isSendRequest]='false'></sa-sensor-type>
												</span>
											</div>
											<div class="item-box col-xs-4 no-padding"><span class="item-key">司机电话</span><span class="item-value" [attr.title]="">{{deviceBaseInfo.phone||'--'}}</span></div>
											<div class="item-box col-xs-4 no-padding"><span class="item-key">设备ID</span><span class="item-value" [attr.title]="">{{deviceBaseInfo.deviceId||'--'}}</span></div>
											<div class="item-box col-xs-4 no-padding"><span class="item-key">产品编码</span><span class="item-value" [attr.title]="">{{deviceBaseInfo.productNo||'--'}}</span></div>
											<div class="item-box col-xs-4 no-padding"><span class="item-key">录入人员</span><span class="item-value" [attr.title]="">{{deviceBaseInfo.userNameForCreate||'--'}}</span></div>
											<div class="item-box col-xs-4 no-padding"><span class="item-key">硬件版本</span><span class="item-value" [attr.title]="">{{deviceBaseInfo.hwVersion||'--'}}</span></div>
											<div class="item-box col-xs-4 no-padding"><span class="item-key">SIM卡号</span><span class="item-value" [attr.title]="">{{deviceBaseInfo.iccid||'--'}}</span></div>
											<div class="item-box col-xs-4 no-padding"><span class="item-key">安装时间</span><span class="item-value" [attr.title]="">{{deviceBaseInfo.inputDate||'--'}}</span></div>
											<div class="item-box col-xs-4 no-padding"><span class="item-key">传感器通道</span><span class="item-value table_scroll" [attr.title]="deviceBaseInfo.sensorChannel">
												<span  class="channel-style bg-green" [ngClass]="{'bg-normal':!item.flag}" *ngFor="let item of deviceBaseInfo.sensorChannelT">{{item.value}}</span>
												<span *ngIf="deviceBaseInfo.sensorChannel.length == 0">--</span>
											</span></div>
											<div class="item-box col-xs-4 no-padding">
												<span class="item-key">当前系数</span><span class="item-value" [attr.title]="deviceBaseInfo.coef">
													<span *ngIf='deviceBaseInfo.coefT.length >0'>
														<span>[</span><span *ngFor="let lis of deviceBaseInfo.coefT;let i = index;">
															<span style="font-weight: bold;">CH{{lis.index}}:</span><span>{{lis.value}}<span *ngIf="i < deviceBaseInfo.coefT.length-1">,</span></span>
														</span><span>]</span>
													</span>
													<span *ngIf='deviceBaseInfo.coefT.length == 0'>--</span>
												</span>
											</div>
											<div class="item-box col-xs-4 no-padding"><span class="item-key">算法版本</span><span class="item-value" [attr.title]="deviceBaseInfo.version">{{deviceBaseInfo.version||'--'}}</span></div>
										</div>
										<div class="device-module clearfix">
											<h4>问题记录<span style="font-weight: normal;"> </span></h4>
											<div class="item-box col-xs-4 no-padding" *ngFor="let item of questionRecordInfo"><span class="item-key">{{item.reason}}</span><span class="item-value jump-number" (click)="jumpQuestionByHand(item.exceptionType,item.programType,item.reasonCount)">{{item.reasonCount}}</span></div>
										</div>
										<div class="device-module clearfix">
											<h4>数据修复<span style="font-weight: normal;"> </span></h4>
											<div class="item-box col-xs-4 no-padding"><span class="item-key">数据修复</span><span class="item-value jump-number" (click)="jumpDataFixList('1',dataFixInfo.dataFixCount)">{{dataFixInfo.dataFixCount||'--'}}</span></div>
											<div class="item-box col-xs-4 no-padding"><span class="item-key">轨迹修复</span><span class="item-value jump-number" (click)="jumpDataFixList('2',dataFixInfo.truckFixCount)">{{dataFixInfo.truckFixCount||'--'}}</span></div>
											<div class="item-box col-xs-4 no-padding"><span class="item-key">待修复[矩阵]</span><span class="item-value jump-number" (click)="jumpDataFixList('3',dataFixInfo.exceptionOrderCount)">{{dataFixInfo.exceptionOrderCount||'--'}}</span></div>
										</div>
										<div class="device-module clearfix">
											<h4>警报记录<span style="font-weight: normal;"> </span></h4>
											<div class="item-box col-xs-4 no-padding"><span class="item-key">断电警报</span><span class="item-value jump-number" (click)="jumpAlertDataList('2',alertDataInfo.shutDownCount)">{{alertDataInfo.shutDownCount||'--'}}</span></div>
											<div class="item-box col-xs-4 no-padding"><span class="item-key">离线警报</span><span class="item-value jump-number" (click)="jumpAlertDataList('1',alertDataInfo.offLineCount)">{{alertDataInfo.offLineCount||'--'}}</span></div>
											<div class="item-box col-xs-4 no-padding"><span class="item-key">异常断电警报</span><span class="item-value jump-number" (click)="jumpAlertDataList('3',alertDataInfo.shutDownExceptionCount)">{{alertDataInfo.shutDownExceptionCount||'--'}}</span></div>
										</div>
										<div class="device-module clearfix">
											<h4>总磅单数<span style="font-weight: normal;"> </span></h4>
											<div class="item-box col-xs-4 no-padding"><span class="item-key">磅单总数</span><span class="item-value">{{weightData.WeightBridgeCount||'--'}}</span></div>
											<div class="item-box col-xs-4 no-padding"><span class="item-key">最新磅单重量</span><span class="item-value">{{weightData.weight||'--'}}</span></div>
											<div class="item-box col-xs-4 no-padding"><span class="item-key">最近磅单时间</span><span class="item-value">{{weightData.lastDate||'--'}}</span></div>
										</div>
										<div class="device-module clearfix">
											<h4>维修记录<span style="font-weight: normal;"> </span></h4>
											<div class="item-box col-xs-4 no-padding"><span class="item-key">待维修记录</span><span class="item-value jump-number" (click)="jumpRepairedDeviceList('0','1',repairedDeviceInfo.waitFixedCount)">{{repairedDeviceInfo.waitFixedCount||'--'}}</span></div>
											<div class="item-box col-xs-4 no-padding"><span class="item-key">已维修记录</span><span class="item-value jump-number" (click)="jumpRepairedDeviceList('1','2',repairedDeviceInfo.fixedCount)">{{repairedDeviceInfo.fixedCount||'--'}}</span></div>
											<div class="item-box col-xs-4 no-padding"><span class="item-key">最新维修时间</span><span class="item-value">{{repairedDeviceInfo.lastRepariedTime||'--'}}</span></div>
										</div>
										<div class="device-module clearfix">
											<h4>设备状态</h4>
											<div class="item-box col-xs-4 no-padding">
												<span class="item-key">在线状态</span><span class="item-value">
													<span *ngIf="deviceRealTimeDataInfo.runStatus == '1'" class="green">在线</span><span class="red" *ngIf="deviceRealTimeDataInfo.runStatus == '0'">离线<span *ngIf="deviceRealTimeDataInfo.alarmType == '0'||!deviceRealTimeDataInfo.alarmType">[未知原因]</span><span *ngIf="deviceRealTimeDataInfo.alarmType == '1'||deviceRealTimeDataInfo.alarmType == '2'">[断电中]</span><span *ngIf="deviceRealTimeDataInfo.alarmType == '3'">[异常断电]</span></span><span *ngIf="!deviceRealTimeDataInfo.runStatus">--</span>
												</span>
											</div>
											<div class="item-box col-xs-4 no-padding"><span class="item-key">设备电压</span><span class="item-value">{{deviceRealTimeDataInfo.voltage||'--'}}</span></div>
											<div class="item-box col-xs-4 no-padding">
												<span class="item-key">警报类型</span><span class="item-value">
													<span *ngIf="deviceRealTimeDataInfo.alarmType == '0'||!deviceRealTimeDataInfo.alarmType">无警报</span><span *ngIf="deviceRealTimeDataInfo.alarmType == '2'" class="red">
														离线警报</span><span *ngIf="deviceRealTimeDataInfo.alarmType == '1'" class="red">断电警报
														</span>
												</span>
											</div>
											<div class="item-box col-xs-4 no-padding"><span class="item-key">更新时间</span><span class="item-value">{{deviceRealTimeDataInfo.updateTime||'--'}}</span></div>
											<div class="item-box col-xs-4 no-padding"><span class="item-key">采集时间</span><span class="item-value">{{deviceRealTimeDataInfo.voltageTime||'--'}}</span></div>
											<div class="item-box col-xs-4 no-padding"><span class="item-key">警报时间</span><span class="item-value"><span class="red" *ngIf="deviceRealTimeDataInfo.alarmTime">{{deviceRealTimeDataInfo.alarmTime}}</span><span *ngIf="!deviceRealTimeDataInfo.alarmTime">--</span></span></div>
										</div>
										<span *ngIf="isShowOfflineAlert" class="red offline-alert left">异常离线[磅单数:{{weightCount}}][离线时长:{{offlineDiffTime}}]</span>
									</div> -->
                </div>

                <div id="question" class="tab-pane">
                  <div class="table_scroll">
                    <table
                      class="display dataTables responsive table table-striped table-bordered table-hover dataTable s_h5_table"
                    >
                      <thead>
                        <tr>
                          <th>录入人员</th>
                          <th>录入时间</th>
                          <th>设备ID</th>
                          <th>车牌号</th>
                          <th>版本</th>
                          <th>问题分类</th>
                          <th>现象分类</th>
                          <th>问题原因</th>
                          <th>车辆用途</th>
                          <th>用途分类</th>
                          <th>开始时间</th>
                          <th>结束时间</th>
                          <th>系数</th>
                          <th>状态</th>
                          <th>审核人员</th>
                          <th>审核时间</th>
                          <th>备注</th>
                        </tr>
                      </thead>
                      <tbody>
                        <tr *ngFor="let row of tableDataTab1; let i = index" [attr.data-index]="i">
                          <td>{{ row.createUserName }}</td>
                          <td>{{ row.createDate }}</td>
                          <td>{{ row.deviceId }}</td>
                          <td>{{ row.carNumber }}</td>
                          <td>{{ row.version }}</td>
                          <td>{{ row.exceptionType }}</td>
                          <td>{{ row.programType }}</td>
                          <td>{{ row.reason }}</td>
                          <td>{{ row.useTypeL1 }}</td>
                          <td>{{ row.useTypeL2 }}</td>
                          <td>{{ row.startDate }}</td>
                          <td>{{ row.endDate }}</td>
                          <td>
                            <span *ngIf="row.coef.length > 0">
                              <span>[</span>
                              <span *ngFor="let lis of row.coef; let i = index">
                                <span style="font-weight: bold">CH{{ lis.index }}:</span>
                                <span>
                                  {{ lis.value }}
                                  <span *ngIf="i < row.coef.length - 1">,</span>
                                </span>
                              </span>
                              <span>]</span>
                            </span>
                          </td>
                          <td>
                            <span *ngIf="row.isCheck == '1'" class="green">审核通过</span>
                            <span *ngIf="row.isCheck == '0'" class="orange">未审核</span>
                          </td>
                          <td>{{ row.userNameForCheck }}</td>
                          <td>{{ row.checkDate }}</td>
                          <td>{{ row.remark }}</td>
                        </tr>
                      </tbody>
                    </table>
                  </div>
                  <div class="table-fix clearfix">
                    <paginator
                      [totalRecords]="totalCountTab"
                      [rows]="pageSizeTab"
                      [currentPage]="curPageTab - 1"
                      (onPageChange)="paginateTab($event)"
                    ></paginator>
                    <button type="button" class="btn default refresh_btn" (click)="refreshTab()">
                      <i class="fa fa-refresh"></i>
                    </button>
                  </div>
                </div>
                <div id="dataFix" class="tab-pane">
                  <div class="table_scroll">
                    <table
                      class="display dataTables responsive table table-striped table-bordered table-hover dataTable s_h5_table"
                    >
                      <thead>
                        <tr>
                          <th>用户名</th>
                          <th>记录类型</th>
                          <th>车牌号码</th>
                          <th>记录时间</th>
                          <th>内容</th>
                        </tr>
                      </thead>
                      <tbody>
                        <tr *ngFor="let row of tableDataTab2; let i = index" [attr.data-index]="i">
                          <td>{{ row.userName }}</td>
                          <td>
                            <span *ngIf="row.operation == '1'">数据修复</span>
                            <span *ngIf="row.operation == '2'">轨迹修复</span>
                          </td>
                          <td>{{ row.carNumber }}</td>
                          <td>{{ row.createTime }}</td>
                          <td>{{ row.content }}</td>
                        </tr>
                      </tbody>
                    </table>
                  </div>
                  <div class="table-fix clearfix">
                    <paginator
                      [totalRecords]="totalCountTab"
                      [rows]="pageSizeTab"
                      [currentPage]="curPageTab - 1"
                      (onPageChange)="paginateTab($event)"
                    ></paginator>
                    <button type="button" class="btn default refresh_btn" (click)="refreshTab()">
                      <i class="fa fa-refresh"></i>
                    </button>
                  </div>
                </div>

                <div id="dataWaitFix" class="tab-pane">
                  <div class="table_scroll">
                    <table
                      class="display dataTables responsive table table-striped table-bordered table-hover dataTable s_h5_table"
                    >
                      <thead>
                        <tr>
                          <th>订单编号</th>
                          <th>车牌号码</th>
                          <th>设备ID</th>
                          <th>空车过磅时间</th>
                          <th>重车过磅时间</th>
                          <th>净重</th>
                          <th>订单类型</th>
                          <th>开始卸货时间</th>
                          <th>卸货结束时间</th>
                          <th>异常描述</th>
                          <th>推送时间</th>
                          <th>推送状态</th>
                          <th>处理人</th>
                          <th>状态</th>
                          <th>录入时间</th>
                          <th>更新时间</th>
                        </tr>
                      </thead>
                      <tbody>
                        <tr *ngFor="let row of tableDataTab2_1; let i = index" [attr.data-index]="i">
                          <td>{{ row.taskId }}</td>
                          <td>{{ row.carNumber }}</td>
                          <td>{{ row.deviceId }}</td>
                          <td>{{ row.emptyLoadDate }}</td>
                          <td>{{ row.fullLoadDate }}</td>
                          <td>{{ row.weight }}</td>
                          <td>
                            <span *ngIf="row.type == '1'">水泥订单</span>
                            <span *ngIf="row.type == '2'">物资订单</span>
                          </td>
                          <td>{{ row.unloadStartDate }}</td>
                          <td>{{ row.unloadEndDate }}</td>
                          <td>{{ row.remark }}</td>
                          <td>{{ row.pushDate }}</td>
                          <td>
                            <span *ngIf="row.isPush == '0'" class="orange">未推送</span>
                            <span *ngIf="row.isPush == '1'" class="green">已推送</span>
                          </td>
                          <td>{{ row.userName }}</td>
                          <td>
                            <span *ngIf="row.status == '0'" class="orange">待处理</span>
                            <span *ngIf="row.status == '1'" class="green">已处理</span>
                          </td>
                          <td>{{ row.createTime }}</td>
                          <td>{{ row.uploadTime }}</td>
                        </tr>
                      </tbody>
                    </table>
                  </div>
                  <div class="table-fix clearfix">
                    <paginator
                      [totalRecords]="totalCountTab"
                      [rows]="pageSizeTab"
                      [currentPage]="curPageTab - 1"
                      (onPageChange)="paginateTab($event)"
                    ></paginator>
                    <button type="button" class="btn default refresh_btn" (click)="refreshTab()">
                      <i class="fa fa-refresh"></i>
                    </button>
                  </div>
                </div>

                <div id="alert" class="tab-pane">
                  <div class="table_scroll">
                    <table
                      class="display dataTables responsive table table-striped table-bordered table-hover dataTable s_h5_table"
                    >
                      <thead>
                        <tr>
                          <th>设备ID</th>
                          <th>车牌号</th>
                          <th>所属公司</th>
                          <th>异常信息</th>
                          <th>关机时长</th>
                          <th>关机时间</th>
                          <th>开机时间</th>
                          <th>地址</th>
                          <th>状态</th>
                          <th>处理意见</th>
                        </tr>
                      </thead>
                      <tbody>
                        <tr *ngFor="let row of tableDataTab3; let i = index" [attr.data-index]="i">
                          <td>{{ row.deviceId }}</td>
                          <td>{{ row.carNumber }}</td>
                          <td>{{ row.companyName }}</td>
                          <td>{{ row.message }}</td>
                          <td>
                            <span *ngIf="row.type == 1">
                              <span *ngIf="!row.onTime || row.totalSecond == '0秒'">离线中</span>
                              <span *ngIf="row.totalSecond && row.onTime">{{ row.totalSecond }}</span>
                            </span>
                            <span *ngIf="row.type == 2">
                              <span *ngIf="!row.onTime || row.totalSecond == '0秒'">断电中</span>
                              <span *ngIf="row.totalSecond && row.onTime">{{ row.totalSecond }}</span>
                            </span>
                            <span *ngIf="row.type == 3">
                              <span *ngIf="!row.onTime || row.totalSecond == '0秒'">无</span>
                              <span *ngIf="row.onTime && row.totalSecond">{{ row.onTime }}</span>
                            </span>
                          </td>
                          <td>{{ row.offTime }}</td>
                          <td>
                            <span *ngIf="row.type == 1">
                              <span *ngIf="!row.onTime || row.totalSecond == '0秒'">离线中</span>
                              <span *ngIf="row.onTime && row.totalSecond">{{ row.onTime }}</span>
                            </span>
                            <span *ngIf="row.type == 2">
                              <span *ngIf="!row.onTime || row.totalSecond == '0秒'">断电中</span>
                              <span *ngIf="row.onTime && row.totalSecond">{{ row.onTime }}</span>
                            </span>
                            <span *ngIf="row.type == 3">
                              <span *ngIf="!row.onTime || row.totalSecond == '0秒'">无</span>
                              <span *ngIf="row.onTime && row.totalSecond">{{ row.onTime }}</span>
                            </span>
                          </td>
                          <td>{{ row.address }}</td>
                          <td>
                            <span *ngIf="row.handleStatus == 0" class="orange">未处理</span>
                            <span *ngIf="row.handleStatus == 1" class="green">已处理</span>
                          </td>
                          <td>{{ row.addvice }}</td>
                        </tr>
                      </tbody>
                    </table>
                  </div>
                  <div class="table-fix clearfix">
                    <paginator
                      [totalRecords]="totalCountTab"
                      [rows]="pageSizeTab"
                      [currentPage]="curPageTab - 1"
                      (onPageChange)="paginateTab($event)"
                    ></paginator>
                    <button type="button" class="btn default refresh_btn" (click)="refreshTab()">
                      <i class="fa fa-refresh"></i>
                    </button>
                  </div>
                </div>
                <div id="waitRepaired" class="tab-pane">
                  <div class="table_scroll">
                    <table
                      class="display dataTables responsive table table-striped table-bordered table-hover dataTable s_h5_table"
                    >
                      <thead>
                        <tr>
                          <th>操作</th>
                          <th>进厂限制</th>
                          <th>录入人员</th>
                          <th>录入时间</th>
                          <th>故障类型</th>
                          <th>故障现象</th>
                          <th>故障时间</th>
                          <th>维修指导</th>
                          <!-- <th>故障来源</th>
                          <th>备注</th> -->
                          <th>最后编辑</th>
                          <th>故障状态</th>
                        </tr>
                      </thead>
                      <tbody>
                        <tr *ngFor="let row of tableDataTab4_1; let i = index" [attr.data-index]="i">
                          <td>
                            <button type="button" (click)="deleteRepaireRow(row)">删除</button>
                            <button type="button" (click)="autoReset(limitModal,row)">限制</button>
                          </td>
                          <td>
                            <span *ngIf="row.isPush == '1'">限制</span>
                            <span *ngIf="row.isPush == '0' && !row.restrictTime">不限制</span>
                            <span *ngIf="row.restrictTime">
                            {{ row.restrictTime }}后开始限制
                            <button type="button" (click)="cancelRestrict(row)" *ngIf="row.restrictTimeFlag">
                                取消限制
                            </button>
                            </span>
                            <!-- <span *ngIf="row.isPush == '1'">限制</span>
                            <span *ngIf="row.isPush == '0'">不限制</span> -->
                          </td>
                          <td>{{ row.creater }}</td>
                          <td>{{ row.createTime }}</td>
                          <td>{{ row.faultTypeName }}</td>
                          <td>{{ row.faultPhenomenon }}</td>
                          <td>{{ row.faultTime }}</td>
                          <td>{{ row.repairedGuide }}</td>
                          <!-- <td>{{ row.updateSource }}</td>
                          <td>{{ row.remark }}</td> -->
                          <td>{{ row.lastUpdateTime }}</td>
                          <td>
                            <span *ngIf="row.repairedStatus == '0'" class="orange">待维修</span>
                            <span *ngIf="row.repairedStatus == '1'" class="green">已维修</span>
                          </td>
                        </tr>
                      </tbody>
                    </table>
                  </div>
                  <div class="table-fix clearfix">
                    <paginator
                      [totalRecords]="totalCountTab"
                      [rows]="pageSizeTab"
                      [currentPage]="curPageTab - 1"
                      (onPageChange)="paginateTab($event)"
                    ></paginator>
                    <button type="button" class="btn default refresh_btn" (click)="refreshTab()">
                      <i class="fa fa-refresh"></i>
                    </button>
                  </div>
                </div>
                <div id="repaired" class="tab-pane">
                  <div class="table_scroll">
                    <table
                      class="display dataTables responsive table table-striped table-bordered table-hover dataTable s_h5_table"
                    >
                      <thead>
                        <tr>
                          <th>设备ID</th>
                          <th>车牌号码</th>
                          <th>用途分类</th>
                          <th>公司名称</th>
                          <th>维修人员</th>
                          <th>维修订单创建时间</th>
                          <th>维修时间</th>
                          <th>故障现象</th>
                          <th>维修内容</th>
                          <th>维修细分</th>
                          <th>维修编号</th>
                          <th>维修费用[元]</th>
                          <th>支付状态</th>
                          <th>维修状态</th>
                          <th>是否审核</th>
                          <th>审核人员</th>
                          <th>审核时间</th>
                          <th>审核意见</th>
                        </tr>
                      </thead>
                      <tbody>
                        <tr *ngFor="let row of tableDataTab4_2; let i = index" [attr.data-index]="i">
                          <td>{{ row.deviceId }}</td>
                          <td>{{ row.carNumber }}</td>
                          <td>{{ row.useTypeL2 }}</td>
                          <td>{{ row.companyName }}</td>
                          <td>{{ row.repairedUserName }}</td>
                          <td>{{ row.repairOrderCreateTime }}</td>
                          <td>{{ row.repairedTime }}</td>
                          <td>{{ row.faultPhenomenonList }}</td>
                          <td>{{ row.repairContentList }}</td>
                          <td>{{ row.repairSubdivideList }}</td>
                          <td>{{ row.repairedNumber }}</td>
                          <td>
                            <span>{{ row.price / 100 }}</span>
                          </td>
                          <td>
                            <span *ngIf="row.payStatus == 1">待支付</span>
                            <span *ngIf="row.payStatus == 2">已支付</span>
                            <span *ngIf="row.payStatus == 3">订单取消</span>
                          </td>
                          <td>
                            <span class="green">已维修</span>
                          </td>
                          <td>
                            <span *ngIf="row.auditStatus === 0" class="orange">未审核</span>
                            <span *ngIf="row.auditStatus === 1" class="green">审核通过</span>
                            <span *ngIf="row.auditStatus === 2" class="red">审核不通过</span>
                          </td>
                          <td>{{ row.auditUser }}</td>
                          <td>{{ row.auditDate }}</td>
                          <td>{{ row.describe }}</td>
                        </tr>
                      </tbody>
                    </table>
                  </div>
                  <div class="table-fix clearfix">
                    <paginator
                      [totalRecords]="totalCountTab"
                      [rows]="pageSizeTab"
                      [currentPage]="curPageTab - 1"
                      (onPageChange)="paginateTab($event)"
                    ></paginator>
                    <button type="button" class="btn default refresh_btn" (click)="refreshTab()">
                      <i class="fa fa-refresh"></i>
                    </button>
                  </div>
                </div>
                <div id="version" class="tab-pane">
                  <div class="table_scroll">
                    <table
                      class="display dataTables responsive table table-striped table-bordered table-hover dataTable s_h5_table"
                    >
                      <thead>
                        <tr>
                          <th>用户名称</th>
                          <th>设备ID</th>
                          <th>车牌号</th>
                          <th>操作内容</th>
                          <th>升级状态</th>
                          <th>版本名称</th>
                          <th>版本号</th>
                          <th>前版本号</th>
                          <th>时间</th>
                        </tr>
                      </thead>
                      <tbody>
                        <tr *ngFor="let row of tableDataTab5">
                          <td>{{ row.userName }}</td>
                          <td>{{ row.deviceId }}</td>
                          <td>{{ row.carNumber }}</td>
                          <td>{{ row.content }}</td>
                          <td>
                            <span *ngIf="row.status === '0'" style="color: #ffb752">等待升级</span>
                            <span *ngIf="row.status === '2'" style="color: #4cae4c">升级成功</span>
                          </td>
                          <td>{{ row.binName }}</td>
                          <td>{{ row.version }}</td>
                          <td>{{ row.prevVersion }}</td>
                          <td>{{ row.createTime }}</td>
                        </tr>
                      </tbody>
                    </table>
                  </div>
                  <div class="table-fix clearfix">
                    <paginator
                      [totalRecords]="totalCountTab"
                      [rows]="pageSizeTab"
                      [currentPage]="curPageTab - 1"
                      (onPageChange)="paginateTab($event)"
                    ></paginator>
                    <button type="button" class="btn default refresh_btn" (click)="refreshTab()">
                      <i class="fa fa-refresh"></i>
                    </button>
                  </div>
                </div>
                <div id="coef" class="tab-pane">
                  <div class="table_scroll">
                    <table
                      class="display dataTables responsive table table-striped table-bordered table-hover dataTable s_h5_table"
                    >
                      <thead>
                        <tr>
                          <th>操作人</th>
                          <th>设置时间</th>
                          <th>应答时间</th>
                          <th>设置状态</th>
                          <th>下发系数</th>
                          <th>前系数</th>
                          <th>创建时间</th>
                          <th>更新时间</th>
                          <th>设备ID</th>
                          <th>车牌号码</th>
                          <th>公司名称</th>
                        </tr>
                      </thead>
                      <tbody>
                        <tr *ngFor="let row of tableDataTab6">
                          <td>{{ row.userName }}</td>
                          <td>{{ row.sendTime }}</td>
                          <td>{{ row.ackTime }}</td>
                          <td>
                            <!-- 设置状态 type 	0：已提交	1：待下发	2：已下发	3：设置成功 -->
                            <span [ngClass]="{ orange: row.type == 1, grey: row.type == 2, green: row.type == 3 }">
                              {{ row.status }}
                            </span>
                          </td>
                          <td>
                            <span *ngIf="row.newCoef.length > 0">
                              <span>[</span>
                              <span *ngFor="let lis of row.newCoef; let i = index">
                                <span style="font-weight: bold">CH{{ lis.index }}:</span>
                                <span>
                                  {{ lis.value }}
                                  <span *ngIf="i < row.newCoef.length - 1">,</span>
                                </span>
                              </span>
                              <span>]</span>
                            </span>
                          </td>
                          <td>
                            <span *ngIf="row.oldCoef.length > 0">
                              <span>[</span>
                              <span *ngFor="let lis of row.oldCoef; let i = index">
                                <span style="font-weight: bold">CH{{ lis.index }}:</span>
                                <span>
                                  {{ lis.value }}
                                  <span *ngIf="i < row.oldCoef.length - 1">,</span>
                                </span>
                              </span>
                              <span>]</span>
                            </span>
                          </td>
                          <td>{{ row.createTime }}</td>
                          <td>{{ row.updateTime }}</td>
                          <td>{{ row.deviceId }}</td>
                          <td>{{ row.carNumber }}</td>
                          <td>{{ row.companyName }}</td>
                        </tr>
                      </tbody>
                    </table>
                  </div>
                  <div class="table-fix clearfix">
                    <paginator
                      [totalRecords]="totalCountTab"
                      [rows]="pageSizeTab"
                      [currentPage]="curPageTab - 1"
                      (onPageChange)="paginateTab($event)"
                    ></paginator>
                    <button type="button" class="btn default refresh_btn" (click)="refreshTab()">
                      <i class="fa fa-refresh"></i>
                    </button>
                  </div>
                </div>

                <div id="weightData" class="tab-pane">
                  <div class="table_scroll">
                    <table
                      class="display dataTables responsive table table-striped table-bordered table-hover dataTable s_h5_table"
                    >
                      <thead>
                        <tr>
                          <!--<th style="width: 55px;"><input type="checkbox" (change)="selectFn()" /></th>-->
                          <th>车牌号</th>
                          <th>过磅称重时间</th>
                          <th>载重量</th>
                          <th>是否审核</th>
                          <th>任务编号</th>
                          <th>操作</th>
                        </tr>
                      </thead>
                      <tbody>
                        <tr *ngFor="let row of tableDataTab7; let i = index" [attr.data-index]="i">
                          <!--<td><input type="checkbox" (change)="onCheckboxChangeFn(row.id)" /></td>-->
                          <td>{{ row.carNumber }}</td>
                          <td>{{ row.date }}</td>
                          <td>{{ row.weight }}</td>
                          <td>
                            <span *ngIf="row.review" class="green">已审核</span>
                            <span *ngIf="!row.review" class="red">未审核</span>
                          </td>
                          <td>{{ row.taskId }}</td>
                          <td>
                            <button type="button" (click)="editRow(row, editModal, $event)">编辑</button>
                            <button type="button" (click)="deleteRow(row)">删除</button>
                          </td>
                        </tr>
                      </tbody>
                    </table>
                  </div>
                  <div class="table-fix clearfix">
                    <paginator
                      [totalRecords]="totalCountTab"
                      [rows]="pageSizeTab"
                      [currentPage]="curPageTab - 1"
                      (onPageChange)="paginateTab($event)"
                    ></paginator>
                    <button type="button" class="btn default refresh_btn" (click)="getTableDataTab('7')">
                      <i class="fa fa-refresh"></i>
                    </button>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>

    <!-- 已到期 -->
    <div id="overdueModal">
      <div class="modal-content">
        <div class="modal-header">
          <button type="button" class="close" (click)="closeOverdueModal()" aria-label="Close">
            <span aria-hidden="true">&times;</span>
          </button>
          <h4 class="modal-title">提示</h4>
        </div>
        <div class="modal-body">
          <div *ngIf="isProjectCarInfo">
            <p style="color: red">该车辆已到期！</p>
            <p>到期时间：{{ renewalInfo.renewalDueTime }}</p>
            <p>过期天数：{{ renewalInfo.expireTime }}</p>
          </div>
          <div *ngIf="!isProjectCarInfo">
            <p>项目车辆中无此车辆</p>
          </div>
        </div>
      </div>
      <!-- 已到期-->
    </div>
  </div>

  <div style="position: absolute; right: 1px; bottom: 1px; width: 30px; height: 24px">
    <button class="dragBtn btn btn-primary" id="dragArrow" title="拖拽改变弹窗宽度">↔</button>
  </div>
</div>
<!--设备详情信息  end-->
<!-- 磅单数据 -->
<!--编辑行表格弹窗-->
<section
  bsModal
  #editModal="bs-modal"
  class="modal fade"
  tabindex="-1"
  role="dialog"
  aria-labelledby="myLargeModalLabel"
  aria-hidden="true"
>
  <div class="modal-dialog modal-lg">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" aria-label="Close" (click)="cancelEdit(editModal)">
          <span aria-hidden="true">&times;</span>
        </button>
        <h4 class="modal-title">编辑地磅数据</h4>
      </div>
      <div class="modal-body">
        <form
          class="form-horizontal"
          name="rowDataForm"
          id="rowDataForm"
          novalidate="novalidate"
          [saBootstrapValidator]="validatorOptions"
        >
          <div class="form-group">
            <label class="control-label col-sm-2 no-padding-right">
              车牌号码
              <sup>*</sup>
            </label>
            <div class="col-sm-9">
              <div class="clearfix">
                <input
                  class="form-control"
                  name="carNumber"
                  [(ngModel)]="handleRow.carNumber"
                  placeholder="车牌号码"
                  type="text"
                />
              </div>
            </div>
          </div>
          <div class="form-group">
            <label class="control-label col-sm-2 no-padding-right">
              过磅时间
              <sup>*</sup>
            </label>
            <div class="col-sm-9">
              <div class="clearfix">
                <input
                  class="form-control"
                  name="uploadDate"
                  [(ngModel)]="handleRow.date"
                  placeholder="过磅称重时间"
                  type="text"
                />
              </div>
            </div>
          </div>
          <div class="form-group">
            <label class="control-label col-sm-2 no-padding-right">载重量[吨]</label>
            <div class="col-sm-9">
              <div class="clearfix">
                <input
                  class="form-control"
                  name="weight"
                  [(ngModel)]="handleRow.weight"
                  placeholder="载重量"
                  type="text"
                />
              </div>
            </div>
          </div>
          <div class="form-group">
            <label class="control-label col-sm-2 no-padding-right">是否审核</label>
            <div class="col-sm-9">
              <div class="clearfix">
                <select name="review" class="form-control" [(ngModel)]="handleRow.review">
                  <option value="">请选择</option>
                  <option value="true">是</option>
                  <option value="false">否</option>
                </select>
              </div>
            </div>
          </div>
          <div class="form-group">
            <label class="control-label col-sm-2 no-padding-right">任务编号</label>
            <div class="col-sm-9">
              <div class="clearfix">
                <input
                  class="form-control"
                  name="taskId"
                  placeholder="任务编号"
                  type="text"
                  [(ngModel)]="handleRow.taskId"
                />
              </div>
            </div>
          </div>
        </form>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" (click)="cancelEdit(editModal)">取消</button>
        <button type="button" class="btn btn-primary" (click)="editSubmit(editModal)">确认</button>
      </div>
    </div>
  </div>
</section>
<!--编辑行表格弹窗 弹窗-->

<!--系数设置  弹窗-->
<section
  bsModal
  #positionModal="bs-modal"
  class="modal fade"
  tabindex="-1"
  role="dialog"
  aria-labelledby="myLargeModalLabel"
  aria-hidden="true"
>
  <div class="modal-dialog modal-lg">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" (click)="closeConfigView(positionModal)" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
        <h4 class="modal-title">系数配置-{{ coefCarNumber }}</h4>
      </div>
      <div class="modal-body row">
        <div class="profile-info-row col-xs-6" *ngFor="let item of coefficientList">
          <div class="profile-info-name">Channel {{ item.index }}</div>
          <div class="profile-info-value">
            <input
              [(ngModel)]="item.coef"
              type="text"
              class="input form-control"
              [ngClass]="{ green: item.coef !== 0 }"
            />
          </div>
        </div>
      </div>
      <div class="modal-footer" style="text-align: center">
        <button type="button" class="btn btn-default" (click)="closeConfigView(positionModal)">取消</button>
        <button type="button" class="btn btn-primary" (click)="getConfigParams()">重置</button>
        <button type="button" class="btn btn-primary" (click)="submitConfigMapped(positionModal)">提交</button>
      </div>
    </div>
  </div>
</section>
<!--系数设置  弹窗  end-->

<!--系数设置  弹窗-->
<section
  bsModal
  #dealModal="bs-modal"
  class="modal"
  tabindex="-1"
  role="dialog"
  aria-labelledby="myLargeModalLabel"
  aria-hidden="true"
>
  <div class="modal-dialog modal-lg">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" (click)="closeDealModal(dealModal)" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
        <h4 class="modal-title">处理</h4>
      </div>
      <div class="modal-body">
        <div class="row form-horizontal">
          <div class="form-group clearfix" id="checkStatusBox">
            <label class="control-label col-sm-2 no-padding-right">状态</label>
            <div class="col-sm-10 clearfix">
              <label class="radio radio-inline">
                <input
                  type="radio"
                  class="radiobox"
                  [(ngModel)]="dealValueModal.checkStatus"
                  (change)="checkStatusChange($event.target.value)"
                  value="0"
                  name="0"
                  id="dealCheckStatus0"
                />
                <span>正常卸货</span>
              </label>
              <label class="radio radio-inline">
                <input
                  type="radio"
                  class="radiobox"
                  [(ngModel)]="dealValueModal.checkStatus"
                  (change)="checkStatusChange($event.target.value)"
                  value="1"
                  name="1"
                  id="dealCheckStatus1"
                />
                <span>GPS异常</span>
              </label>
              <label class="radio radio-inline">
                <input
                  type="radio"
                  class="radiobox"
                  [(ngModel)]="dealValueModal.checkStatus"
                  (change)="checkStatusChange($event.target.value)"
                  value="6"
                  name="6"
                  id="dealCheckStatus6"
                />
                <span>设备离线</span>
              </label>
              <label class="radio radio-inline">
                <input
                  type="radio"
                  class="radiobox"
                  [(ngModel)]="dealValueModal.checkStatus"
                  (change)="checkStatusChange($event.target.value)"
                  value="7"
                  name="7"
                  id="dealCheckStatus7"
                />
                <span>平台问题</span>
              </label>
              <label class="radio radio-inline">
                <input
                  type="radio"
                  class="radiobox"
                  [(ngModel)]="dealValueModal.checkStatus"
                  (change)="checkStatusChange($event.target.value)"
                  value="9"
                  name="9"
                  id="dealCheckStatus9"
                />
                <span>磅单问题</span>
              </label>
            </div>
          </div>
          <div class="form-group">
            <label class="control-label col-sm-2 no-padding-right">意见</label>
            <div class="col-sm-9">
              <div class="clearfix">
                <!--<textarea id="detailMessage" [(ngModel)]='dealModal.detailMessage'></textarea>-->
                <textarea
                  name="detailMessage"
                  id="detailMessage"
                  class="form-control"
                  [(ngModel)]="dealModalMessage"
                  placeholder="处理意见"
                ></textarea>
              </div>
            </div>
          </div>
        </div>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" (click)="closeDealModal(dealModal)">取消</button>
        <button type="button" class="btn btn-primary" (click)="submitDealModal(dealModal)">提交</button>
      </div>
    </div>
  </div>
</section>
<!--系数设置  弹窗  end-->

<!--系数设置  弹窗-->
<section
  bsModal
  #dealAlgorithmModal="bs-modal"
  class="modal"
  tabindex="-1"
  role="dialog"
  aria-labelledby="myLargeModalLabel"
  aria-hidden="true"
>
  <div class="modal-dialog modal-lg">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" (click)="closeDealAlgorithmModal(dealAlgorithmModal)" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
        <h4 class="modal-title">处理[算法]</h4>
      </div>
      <div class="modal-body" id="dealAlgorithmModalBody">
        <div class="row form-horizontal">
          <div class="form-group clearfix" id="algorithmProcessingStatusBox">
            <label class="control-label col-sm-2 no-padding-right">处理状态</label>
            <div class="col-sm-10 clearfix">
              <label class="radio radio-inline">
                <input
                  type="radio"
                  class="radiobox"
                  [(ngModel)]="dealAlgorithmValue.algorithmProcessingStatus"
                  (change)="algorithmProcessingStatusChange($event.target.value)"
                  value="1"
                  name="algorithmProcessingStatus1"
                  id="algorithmProcessingStatus1"
                />
                <span>已解决</span>
              </label>
              <label class="radio radio-inline">
                <input
                  type="radio"
                  class="radiobox"
                  [(ngModel)]="dealAlgorithmValue.algorithmProcessingStatus"
                  (change)="algorithmProcessingStatusChange($event.target.value)"
                  value="0"
                  name="algorithmProcessingStatus0"
                  id="algorithmProcessingStatus0"
                />
                <span>未解决</span>
              </label>
              <label class="radio radio-inline">
                <input
                  type="radio"
                  class="radiobox"
                  [(ngModel)]="dealAlgorithmValue.algorithmProcessingStatus"
                  (change)="algorithmProcessingStatusChange($event.target.value)"
                  value="2"
                  name="algorithmProcessingStatus2"
                  id="algorithmProcessingStatus2"
                />
                <span>其他</span>
              </label>
            </div>
          </div>

          <div class="form-group" id="algorithmProblemTypesBox">
            <label class="control-label col-sm-2 no-padding-right">问题分类</label>
            <div class="col-sm-9">
              <label class="radio radio-inline">
                <input
                  type="radio"
                  class="radiobox"
                  [(ngModel)]="dealAlgorithmValue.algorithmProblemTypes"
                  (change)="algorithmProblemTypesChange($event.target)"
                  value="算法问题"
                  name="0"
                  id="algorithmProblemTypes0"
                />
                <span>算法问题</span>
              </label>
              <label class="radio radio-inline">
                <input
                  type="radio"
                  class="radiobox"
                  [(ngModel)]="dealAlgorithmValue.algorithmProblemTypes"
                  (change)="algorithmProblemTypesChange($event.target)"
                  value="传感器问题"
                  name="1"
                  id="algorithmProblemTypes1"
                />
                <span>传感器问题</span>
              </label>
              <label class="radio radio-inline">
                <input
                  type="radio"
                  class="radiobox"
                  [(ngModel)]="dealAlgorithmValue.algorithmProblemTypes"
                  (change)="algorithmProblemTypesChange($event.target)"
                  value="系数问题"
                  name="2"
                  id="algorithmProblemTypes2"
                />
                <span>系数问题</span>
              </label>
              <label class="radio radio-inline">
                <input
                  type="radio"
                  class="radiobox"
                  [(ngModel)]="dealAlgorithmValue.algorithmProblemTypes"
                  (change)="algorithmProblemTypesChange($event.target)"
                  value="对接问题"
                  name="3"
                  id="algorithmProblemTypes3"
                />
                <span>对接问题</span>
              </label>
              <label class="radio radio-inline">
                <input
                  type="radio"
                  class="radiobox"
                  [(ngModel)]="dealAlgorithmValue.algorithmProblemTypes"
                  (change)="algorithmProblemTypesChange($event.target)"
                  value="其他"
                  name="4"
                  id="algorithmProblemTypes4"
                />
                <span>其他</span>
              </label>
            </div>
          </div>

          <div class="form-group">
            <label class="control-label col-sm-2 no-padding-right">备注</label>
            <div class="col-sm-9">
              <div class="clearfix">
                <textarea
                  name="remark"
                  id="algorithmNotes"
                  class="form-control"
                  [(ngModel)]="algorithmNotes"
                  placeholder="备注"
                ></textarea>
              </div>
            </div>
          </div>
        </div>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" (click)="closeDealAlgorithmModal(dealAlgorithmModal)">
          取消
        </button>
        <button type="button" class="btn btn-primary" (click)="submitDealAlgorithmModal(dealAlgorithmModal)">
          提交
        </button>
      </div>
    </div>
  </div>
</section>
<!--系数设置  弹窗  end-->

<!--编辑设备信息  弹窗-->
<section
  bsModal
  #editDeciceModal="bs-modal"
  class="modal"
  tabindex="-1"
  role="dialog"
  aria-labelledby="myLargeModalLabel"
  aria-hidden="true"
>
  <div class="modal-dialog modal-lg">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" (click)="closeEditDeciceModal(editDeciceModal)" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
        <h4 class="modal-title">编辑设备信息</h4>
      </div>
      <div class="modal-body">
        <div class="row form-horizontal">
          <div class="form-group clearfix">
            <label class="control-label col-sm-2 no-padding-right">
              用途
              <sup>*</sup>
            </label>
            <div class="col-sm-9">
              <div class="clearfix s_fix_select2">
                <select class="form-control select2" id="useTypeSelect" select2 name="carUseType" style="width: 100%">
                  <option value="">请选择</option>
                  <optgroup *ngFor="let item of carTypeList" [label]="item.label">
                    <option *ngFor="let itemChild of item.children" [value]="itemChild.id">
                      {{ itemChild.label }}
                    </option>
                  </optgroup>
                </select>
              </div>
            </div>
          </div>
          <div class="form-group clearfix">
            <label class="control-label col-sm-2 no-padding-right">传感器类型</label>
            <div class="col-sm-9">
              <div class="clearfix">
                <sa-sensor-type
                  (sensorSelected)="sensorSelected($event)"
                  [inputParam]="inputParam"
                  Width="100%"
                  [sensorTypeId]="page.sensorType"
                  Height="32px"
                  [isShow]="false"
                  type="1"
                  [isSendRequest]="false"
                ></sa-sensor-type>
              </div>
            </div>
          </div>
          <div class="form-group clearfix">
            <label class="control-label col-sm-2 no-padding-right">传感器数量</label>
            <div class="col-sm-9">
              <div class="clearfix">
                <input
                  class="form-control"
                  name="sensorAmount"
                  type="text"
                  [(ngModel)]="page.sensorAmount"
                  placeholder="传感器数量"
                />
              </div>
            </div>
          </div>
          <div class="form-group sensorCH">
            <label class="control-label col-sm-2 no-padding-right">传感器</label>
            <div class="col-sm-9">
              <div style="border: 1px solid #ccc; padding-bottom: 8px; padding-left: 12px">
                <div>
                  <label class="checkbox-inline" *ngFor="let item of deviceSensorArr">
                    <input
                      type="checkbox"
                      class="checkbox style-0"
                      [value]="item.id"
                      [name]="item.text"
                      [(ngModel)]="item.checked"
                      (change)="deviceSensorChange(item.id, $event)"
                    />
                    <span>{{ item.text }}</span>
                  </label>
                </div>
              </div>
            </div>
          </div>
          <div class="form-group">
            <label class="control-label col-sm-2 no-padding-right">通道[前轴]</label>
            <div class="col-sm-9">
              <div class="passWay1">
                <div *ngFor="let item of sensorAxleFront" style="display: inline-block; width: auto; height: auto">
                  <span *ngIf="item.checked" class="wayChannel wayCheck" (click)="sensorAxleFrontChange(item, $event)">
                    {{ item.text }}
                  </span>
                  <span *ngIf="item.isDisable" class="wayChannel wayDisable">{{ item.text }}</span>
                  <span
                    *ngIf="!item.isDisable && !item.checked"
                    class="wayChannel"
                    (click)="sensorAxleFrontChange(item, $event)"
                  >
                    {{ item.text }}
                  </span>
                </div>
              </div>
            </div>
          </div>
          <div class="form-group">
            <label class="control-label col-sm-2 no-padding-right">通道[后轴]</label>
            <div class="col-sm-9">
              <div class="passWay2">
                <div *ngFor="let item of sensorAxleAfter" style="display: inline-block; width: auto; height: auto">
                  <span *ngIf="item.checked" class="wayChannel wayCheck" (click)="sensorAxleAfterChange(item, $event)">
                    {{ item.text }}
                  </span>
                  <span *ngIf="item.isDisable" class="wayChannel wayDisable">{{ item.text }}</span>
                  <span
                    *ngIf="!item.isDisable && !item.checked"
                    class="wayChannel"
                    (click)="sensorAxleAfterChange(item, $event)"
                  >
                    {{ item.text }}
                  </span>
                </div>
              </div>
            </div>
          </div>
          <div class="form-group clearfix">
            <label class="control-label col-sm-2 no-padding-right">车轴数量</label>
            <div class="col-sm-9">
              <div class="clearfix">
                <input
                  class="form-control"
                  name="carAxleAmount"
                  id="carAxleAmount"
                  type="text"
                  [(ngModel)]="page.carAxleAmount"
                  placeholder="车轴数量"
                  (input)="carAxleAmountChange($event.target.value)"
                />
              </div>
            </div>
          </div>
          <div class="form-group">
            <label class="control-label col-sm-2 no-padding-right">安装位置</label>
            <div class="col-sm-9">
              <div class="install">
                <div class="install-contain" *ngIf="page.carAxleAmount != 0 || page.carAxleAmount == ''">
                  <table
                    class="display dataTables responsive table table-striped table-bordered table-hover dataTable s_h5_table"
                  >
                    <thead>
                      <tr class="install-header">
                        <th></th>
                        <th>左</th>
                        <th>中</th>
                        <th>右</th>
                      </tr>
                    </thead>
                    <tbody>
                      <tr *ngFor="let row of installArray; let i = index" [attr.data-index]="i">
                        <td>轴{{ row.index }}</td>
                        <td>
                          <div class="installDiv install-L">
                            <span *ngFor="let channel of row.positionLMR[0].sensorChannel" class="mayChannel">
                              {{ channel }}
                              <i (click)="cancelChannel(row.index, 'left', channel)">x</i>
                            </span>
                            <span class="add" (click)="addinstall(row.index, 'left', installModal)">+</span>
                          </div>
                        </td>
                        <td>
                          <div class="installDiv install-M">
                            <span *ngFor="let channel of row.positionLMR[1].sensorChannel" class="mayChannel">
                              {{ channel }}
                              <i (click)="cancelChannel(row.index, 'middle', channel)">x</i>
                            </span>
                            <span class="add" (click)="addinstall(row.index, 'middle', installModal)">+</span>
                          </div>
                        </td>
                        <td>
                          <div class="installDiv install-R">
                            <span *ngFor="let channel of row.positionLMR[2].sensorChannel" class="mayChannel">
                              {{ channel }}
                              <i (click)="cancelChannel(row.index, 'right', channel)">x</i>
                            </span>
                            <span class="add" (click)="addinstall(row.index, 'right', installModal)">+</span>
                          </div>
                        </td>
                      </tr>
                    </tbody>
                  </table>
                </div>
              </div>
            </div>
          </div>
          <div class="form-group clearfix">
            <label class="control-label col-sm-2 no-padding-right">GPS天线</label>
            <div class="col-sm-9">
              <div class="clearfix">
                <select
                  class="form-control"
                  name="gpsAntenna"
                  [(ngModel)]="page.gpsAntenna"
                  style="width: 100%"
                  (change)="gpsAntennaChange($event.target.value)"
                >
                  <option value="">请选择</option>
                  <option *ngFor="let gpsObj of gpsOptions" [value]="gpsObj.value">{{ gpsObj.text }}</option>
                </select>
              </div>
            </div>
          </div>
          <div class="form-group clearfix">
            <label class="control-label col-sm-2 no-padding-right">GSM天线</label>
            <div class="col-sm-9">
              <div class="clearfix">
                <select
                  class="form-control"
                  name="gsmAntenna"
                  [(ngModel)]="page.gsmAntenna"
                  style="width: 100%"
                  (change)="gsmAntennaChange($event.target.value)"
                >
                  <option value="">请选择</option>
                  <option *ngFor="let gsmObj of gsmOptions" [value]="gsmObj.value">{{ gsmObj.text }}</option>
                </select>
              </div>
            </div>
          </div>
          <div class="form-group clearfix">
            <label class="control-label col-sm-2 no-padding-right">司机姓名</label>
            <div class="col-sm-9">
              <div class="clearfix">
                <input
                  class="form-control"
                  name="driverName"
                  type="text"
                  [(ngModel)]="page.driverName"
                  placeholder="司机姓名"
                />
              </div>
            </div>
          </div>
          <div class="form-group clearfix">
            <label class="control-label col-sm-2 no-padding-right">司机电话</label>
            <div class="col-sm-9">
              <div class="clearfix">
                <input class="form-control" name="phone" type="text" [(ngModel)]="page.phone" placeholder="联系电话" />
              </div>
            </div>
          </div>
        </div>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" (click)="closeEditDeciceModal(editDeciceModal)">取消</button>
        <button type="button" class="btn btn-primary" (click)="submitEditDeciceModal(editDeciceModal)">提交</button>
      </div>
    </div>
  </div>
</section>
<!--编辑设备信息  弹窗  end-->

<!--  传感器通道弹窗-->
<div
  bsModal
  #installModal="bs-modal"
  id="lgModal"
  class="modal fade"
  tabindex="-1"
  role="dialog"
  aria-labelledby="myLargeModalLabel"
  aria-hidden="true"
>
  <div class="modal-dialog modal-lg">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" (click)="lgModalhide(installModal)" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
        <h4 class="modal-title">传感器通道</h4>
      </div>
      <div class="modal-body">
        <div class="row">
          <form class="form form-inline" role="form">
            <div class="row">
              <div class="form-group">
                <label class="control-label" style="margin-right: 10px">传感器:</label>
                <div class="inline_block checkChannel" *ngFor="let item of checkChannel">
                  <span *ngIf="item.checked" class="channel check" (click)="choiceChannel(item, $event)">
                    {{ item.text }}
                  </span>
                  <span *ngIf="item.isDisable" class="channel disable">{{ item.text }}</span>
                  <span *ngIf="!item.isDisable && !item.checked" class="channel" (click)="choiceChannel(item, $event)">
                    {{ item.text }}
                  </span>
                </div>
              </div>
            </div>
          </form>
        </div>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" (click)="lgModalhide(installModal)">取消</button>
        <button type="button" class="btn btn-primary" (click)="lgModalConfirm(installModal)">确认</button>
      </div>
    </div>
  </div>
</div>
<!--弹窗end-->

<!-- 曲线图查看   弹窗-->
<!--<section bsModal #echartMapModal="bs-modal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true">-->
<section id="echartMapModal">
  <div class="modal-dialog modal-lg" style="width: 800px; margin: 0">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" (click)="closeEchartMapModal()" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
        <h4 class="modal-title">曲线图</h4>
      </div>
      <div class="modal-body">
        <div class="row form-horizontal">
          <sa-chart-bmap
            [height]="325"
            [isAuditData]="false"
            [offDatas]="true"
            [inputParams]="echartParam"
            [isBaiduMap]="true"
            (outerSend)="initMapDate($event)"
            (outerIsMap)="isHasMapView($event)"
          ></sa-chart-bmap>
          <div [hidden]="!isShowMapView">
            <sa-bmap-chart [trackParams]="drawTrackList" [height]="325" deviceId="deviceId"></sa-bmap-chart>
          </div>
        </div>
      </div>
    </div>
  </div>
</section>
<!-- 曲线图查看 弹窗end-->

<!--  数据统计弹窗-->
<div
  bsModal
  #dataStatisticsModal="bs-modal"
  id="dataModal"
  class="modal fade"
  tabindex="-1"
  role="dialog"
  aria-labelledby="myLargeModalLabel"
  aria-hidden="true"
>
  <div class="modal-dialog modal-lg" style="width: 1200px">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" (click)="dataModalhide(dataStatisticsModal)" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
        <h4 class="modal-title">
          数据统计&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
          <span>开始时间：{{ startTime }}</span>
          &nbsp;&nbsp;--&nbsp;&nbsp;
          <span>结束时间：{{ endTime }}</span>
        </h4>
      </div>
      <div class="modal-body" style="padding: 20px 0">
        <div
          class="echartContainer"
          style="display: flex; justify-content: space-around; flex-wrap: nowrap; position: relative"
        >
          <div class="btn-group shortBox" style="border: 1px solid #ccc; border-radius: 4px">
            <button
              [ngClass]="{ 'btn-primary': dateNumber == 10 }"
              class="btn btn-link shortBtn"
              type="button"
              style="
                min-width: 60px !important;
                margin: 0;
                padding: 0;
                height: 32px;
                border-right: 1px solid #ccc !important;
                border-radius: 0 !important;
                text-decoration: none;
              "
              (click)="dataRangeChange('10', dataStatisticsModal)"
            >
              10天
            </button>
            <button
              [ngClass]="{ 'btn-primary': dateNumber == 20 }"
              class="btn btn-link shortBtn"
              type="button"
              style="
                min-width: 60px !important;
                margin: 0;
                padding: 0;
                height: 32px;
                border-right: 1px solid #ccc !important;
                border-radius: 0 !important;
                text-decoration: none;
              "
              (click)="dataRangeChange('20', dataStatisticsModal)"
            >
              20天
            </button>
            <button
              [ngClass]="{ 'btn-primary': dateNumber == 30 }"
              class="btn btn-link shortBtn"
              type="button"
              style="
                min-width: 60px !important;
                margin: 0;
                padding: 0;
                height: 32px;
                border-right: 1px solid #ccc !important;
                border-radius: 0 !important;
                text-decoration: none;
              "
              (click)="dataRangeChange('30', dataStatisticsModal)"
            >
              30天
            </button>
            <button
              [ngClass]="{ 'btn-primary': dateNumber == 60 }"
              class="btn btn-link shortBtn"
              type="button"
              style="
                min-width: 60px !important;
                margin: 0;
                padding: 0;
                height: 32px;
                border-right: 1px solid #ccc !important;
                border-radius: 0 !important;
                text-decoration: none;
              "
              (click)="dataRangeChange('60', dataStatisticsModal)"
            >
              60天
            </button>
            <button
              [ngClass]="{ 'btn-primary': dateNumber == 90 }"
              class="btn btn-link shortBtn"
              type="button"
              style="
                min-width: 60px !important;
                margin: 0;
                padding: 0;
                height: 32px;
                border-right: 1px solid #ccc !important;
                border-radius: 0 !important;
                text-decoration: none;
              "
              (click)="dataRangeChange('90', dataStatisticsModal)"
            >
              90天
            </button>
            <button
              [ngClass]="{ 'btn-primary': dateNumber == 100 }"
              class="btn btn-link shortBtn"
              type="button"
              style="
                min-width: 60px !important;
                margin: 0;
                padding: 0;
                height: 32px;
                border-radius: 0 !important;
                text-decoration: none;
              "
              (click)="dataRangeChange('100', dataStatisticsModal)"
            >
              100天
            </button>
          </div>
          <!-- 柱形图 -->
          <div id="columnChart" class="columnChart" style="width: 800px; height: 500px"></div>
          <!-- 饼图 -->
          <div id="pieChart" class="pieChart" style="height: 500px; width: 380px; text-align: center"></div>

          <!-- 提示框 -->
          <div
            class="textBox"
            style="
              position: absolute;
              bottom: 0px;
              right: 10px;
              width: 18%;
              background-color: transparent;
              color: #333;
              min-height: 100px;
              z-index: 99;
              box-sizing: 6px 6px 6px #666666;
            "
          >
            <p class="textTitle totalText">
              <span class="textLeft">总数&nbsp;&nbsp;&nbsp;&nbsp;</span>
              <span id="totalNumber" class="totalNumber">{{ totalNumberError }}</span>
            </p>
            <p class="textTitle deviceOfflineText">
              <span class="textLeft">设备离线&nbsp;&nbsp;&nbsp;&nbsp;</span>
              <span id="deviceOffline" class="normal">{{ deviceOfflineError }}</span>
            </p>
            <p class="textTitle sensorProblemText">
              <span class="textLeft">传感器问题&nbsp;&nbsp;&nbsp;&nbsp;</span>
              <span id="sensorProblem" class="abnormal">{{ sensorProblemError }}</span>
            </p>
            <p class="textTitle matlabText">
              <span class="textLeft">算法问题&nbsp;&nbsp;&nbsp;&nbsp;</span>
              <span id="matlabProblem" class="norail">{{ matlabProblemError }}</span>
            </p>
            <p class="textTitle gpsProblem">
              <span class="textLeft">GPS问题&nbsp;&nbsp;&nbsp;&nbsp;</span>
              <span id="gpsProblem" class="error">{{ gpsProblemError }}</span>
            </p>
            <p class="textTitle platformText">
              <span class="textLeft">平台问题&nbsp;&nbsp;&nbsp;&nbsp;</span>
              <span id="platformIssues" class="platformerror">{{ platformIssuesError }}</span>
            </p>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
<!--弹窗end-->

<!-- 群消息弹框 -->
<section
  bsModal
  #msgHistoryModal="bs-modal"
  class="modal fade"
  tabindex="-1"
  role="dialog"
  aria-labelledby="myLargeModalLabel"
  aria-hidden="true"
>
  <div class="modal-dialog modal-sm" style="width: 500px">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" (click)="closeModal(msgHistoryModal)" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
        <h4 class="modal-title">群消息历史记录</h4>
      </div>
      <div class="modal-body">
        <div *ngFor="let item of msgHistoryList" class="history-item" (click)="copyHistory(item, msgHistoryModal)">
          <div class="history-title">问题：{{ item.question }}</div>
          <div class="history-detail">
            <div class="detail-category">群名称：{{ item.groupName }}</div>
            <div class="detail-category">提问题的人：{{ item.questioner }}</div>
            <div class="detail-category">问题：{{ item.question }}</div>
            <div class="detail-category">归类：{{ item.typeDesc }}</div>
            <div class="detail-category">备注：{{ item.remark }}</div>
          </div>
        </div>
      </div>
    </div>
  </div>
</section>

<!--  批量进厂限制-->
<div
  bsModal
  #limitModal="bs-modal"
  id="limitModal"
  class="modal fade"
  tabindex="-1"
  role="dialog"
  aria-labelledby="myLargeModalLabel"
  aria-hidden="true"
>
<div class="modal-dialog modal-lg">
  <div class="modal-content">
    <div class="modal-header">
      <button type="button" class="close" (click)="cancelModalhide(limitModal)" aria-label="Close">
        <span aria-hidden="true">&times;</span>
      </button>
      <h4 class="modal-title">批量进厂限制</h4>
    </div>
    <div class="modal-body">
      <div class="row">
        <form class="form" role="form">
          <div class="row" style="margin-bottom: 10px">
            <div class="form-group">
              <label class="control-label">是否批量进厂限制：</label>
              <div class="inline_block">
                <label class="radio radio-inline" style="vertical-align: inherit">
                  <input type="radio" class="radiobox" name="0" value="0" [(ngModel)]="lgisPush" />
                  <span>不限制</span>
                </label>
                <label class="radio radio-inline" style="vertical-align: inherit">
                  <input type="radio" class="radiobox" name="1" value="1" [(ngModel)]="lgisPush" />
                  <span>限制</span>
                </label>
                <label class="radio radio-inline" style="vertical-align: inherit">
                  <input type="radio" class="radiobox" name="time" value="time" [(ngModel)]="lgisPush" />
                  <span>
                    自定义限制[
                    <span *ngIf="isPushTime == 6">默认</span>
                    <span>{{ isPushTime }}</span>
                    小时后进行限制]
                  </span>
                </label>
                <input
                  type="number"
                  *ngIf="lgisPush == 'time'"
                  οnkeyup="value=value.replace(/[^\d]/g,'')"
                  (change)="inputChange()"
                  name="isPushTime"
                  placeholder="默认6小时"
                  [(ngModel)]="isPushTime"
                  style="width: 84px; padding: 0 12px"
                />
              </div>
            </div>
          </div>
        </form>
      </div>
    </div>
    <div style="width: 60%; display: inline-block; position: absolute; bottom: 16px; left: 12px">
      <p style="color: #ccc">
        <span>【说明】</span>
        <span>自定义限制：设置时间[小时]后，车辆进厂限制生效，没有生效之前车辆允许进厂。</span>
      </p>
    </div>
    <div class="modal-footer">
      <button type="button" class="btn btn-default" (click)="cancelModalhide(limitModal)">取消</button>
      <button type="button" class="btn btn-primary" (click)="submitLimitModal(limitModal)">确认</button>
    </div>
  </div>
</div>
</div>
<!--弹窗end-->

<style>
  .echartContainer .textTitle {
    font-size: 12px;
    line-height: 28px;
    height: 28px;
    color: #666666;
  }

  .echartContainer .textLeft {
    width: 50%;
    white-space: nowrap;
    text-align: right;
    display: inline-block;
  }

  .echartContainer .normal {
    font-size: 16px;
    color: #5de2ca;
  }

  .echartContainer .abnormal {
    font-size: 16px;
    color: #a020f0;
  }

  .echartContainer .norail {
    font-size: 16px;
    color: #3333ff;
  }

  .echartContainer .error {
    font-size: 16px;
    color: #cc0000;
  }

  .echartContainer .platformerror {
    font-size: 16px;
    color: #ff993e;
  }

  .echartContainer .shortBox {
    position: absolute;
    top: 0px;
    right: 20px;
    z-index: 9;
  }

  .echartContainer .totalNumber {
    font-size: 16px;
    color: #203330;
  }

  .echartContainer .shortBox .btn-primary {
    color: #fff;
  }

  .massage-history {
    margin-top: 4px;
    text-decoration: underline;
    color: #0075ff;
    border-bottom: #0075ff;
    cursor: pointer;
    text-align: center;
    margin-right: 8px;
  }
  .history-item {
    background-color: #f5f7fa;
    border: 1px solid #f1f5fd;
    border-radius: 8px;
    min-height: 40px;
    padding: 4px 12px;
    margin: 6px 0;
  }
  .history-title {
    font-size: 14px;
    font-weight: 500;
  }
  .history-detail {
    padding: 8px 0;
    color: #303133;
  }
  .first_row_style .width50{
    text-align: center;
    width: 50px !important;
    padding-left:0 !important;
    padding-right: 0 !important;
    vertical-align: middle;
  }
  .first_row_style .width60{
    text-align: center;
    width: 60px !important;
    padding-left:0 !important;
    padding-right: 0 !important;
    vertical-align: middle;
  }
  .first_row_style .width80{
    text-align: center;
    width: 80px !important;
    padding-left:0 !important;
    padding-right: 0 !important;
    vertical-align: middle;
  }
  .first_row_style .width90{
    text-align: center;
    width: 90px !important;
    padding-left:0 !important;
    padding-right: 0 !important;
    vertical-align: middle;
  }
  .first_row_style .width100{
    text-align: center;
    width: 100px !important;
    padding-left:0 !important;
    padding-right: 0 !important;
    vertical-align: middle;
  }
  .first_row_style .width120{
    text-align: center;
    width: 120px !important;
    padding-left:0 !important;
    padding-right: 0 !important;
    vertical-align: middle;
  }
  .first_row_style .width150{
    text-align: center;
    width: 150px !important;
    padding-left:0 !important;
    padding-right: 0 !important;
    vertical-align: middle;
  }
  .first_row_style .width200{
    text-align: center;
    width: 200px !important;
    padding-left:0 !important;
    padding-right: 0 !important;
    vertical-align: middle;
  }
  .first_row_style.sensor_table{
    max-height:230px;
    overflow-y: auto;
  }
  .first_row_style.host_table{
    max-height:150px;
    overflow-y: auto;
  }
</style>
